On Thursday, December 13, 2012 7:37:08 AM UTC+13, Eleftheria Paidousi wrote: > i have a .csv file with mixed data and i want to process it with matlab , delete some rows or columns only under some conditions , How can i do it?! I tried textscan but i think that i can change no element .... What should i do?!?!
Read it in line by line using fgetl and process each line as you go. while 1 line=fgetl(fid); if line == -1,break,end % End of file Process each line depending on some criteria you haven't told us about end fclose(fid);