I don't understand what the errors mean... I was trying to have my code read my text file starting at line 20, and from there, remove any NaN that is found... I'm not sure if I'm taking the right approach or not...
fid = fopen('RS1102G1.txt');
Rows = textscan(fid, '%s', 'delimiter', '\n');
fclose(fid);
Columns= cellfun(@(x)textscan(x,'%f','delimiter','\t','CollectOutput',1,'treatAsEmpty',{'VOID'}), Rows{1,1}(19:end, :));
fid(any(isnan(fid),2),:)=[]
My new errors are:
Error using textscan First input can not be empty.
Error in @(x)textscan(x,'%f','delimiter','\t','CollectOutput',1)
Error in SecondScript (line 6) Columns= cellfun(@(x) textscan(x,'%f','delimiter','\t','CollectOutput',1), Rows{1,1}(19:end, :));
any suggestions to help me solve this issue would be great, I'm new to matlab, so everything is a learning process.