how to write this data into a text file?
Ältere Kommentare anzeigen
Hello guys, I have written this data into a text file by the format of this textfile has a wrong format
[rowstg2,colstg2]=size(Stage2_size);
fid2= fopen('Stage2_infor.txt','wt');
for g2=1:rowstg2
for g3=1:colstg2
fprintf(fid2,'%s\t%d',Stage2_size{g2,g3});
end
fprintf(fid2,'\n');
end
fclose(fid2);

out_textfile

1 Kommentar
chocho
am 23 Mai 2018
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Data Import and Analysis 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!