MATLAB: Undefined function ‘read’ for input arguments of type ‘double’.

data importdata read

dat1=read(dat(100,1));
where dat = 1684 *1 double

Best Answer

I assume that you have already dat file in your workspace
data1=dat(1:100,:);