code shows error in function
Ältere Kommentare anzeigen
I am using following code to write text file.. This is the part of a function.. and it works...
fid = fopen(sprintf('Image%d.txt',imageNumber),'wt');
for j=1:length(y),
fprintf(fid,'%f %f\n',y(j),x(j));
end
Now when i am using following code to read the same file then it shows error..
why.?
C = textscan('Image%d.txt',imageNumber);
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Standard File Formats finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!