MATLAB: Rows interval using textscan

textscan

What is the equivalent of
xlsread('data.xlsx','B5:B10')
in the
textscan
?

Best Answer

The intent of the question is a bit unclear since textscan cannot parse excel files. If the intent is to parse a csv file, then both dlmread and csvread (which calls dlmread) accept a range.
In any case, it is very likely that parsing the text file would be a lot easier with readtable or readmatrix. The latter requires R2019a.
Related Question