> > as per your instruction i have written in following way: > > fid = fopen('new1.txt'); % the file name is new1.txt which contains 1971X1 cell > mydata = textscan(fid, '%s %f, %s %f, %s %f'); > fclose(fid); > > but my data shows only for 450X1. i just can't understand why. but >the data for x, y, z is extracted and showed in matrix form. but >the problem is they are not showing all the data. >
are you saying it is read only 450 lines from the file, while the file contains 1971 lines? humm... may be you can look at line 451 in the textfile and see if has anything weired in it.
I tried this on my matlab 2012a for 3 lines, and everything worked ok. I do not know why it stopped at line 450. If you post your textfile somewhere may be you'll get better help.