How to save data from a for loop?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Niya Bedzheva
am 2 Sep. 2019
Beantwortet: Stephen23
am 2 Sep. 2019
Hello everyone ,
i will need your help. I am running a consequence of files with a for loop, which matlab is reading and making some calculations with their data. What i want to do is to save certain results from the calculations of every file that is running (from every file thas is going through the loop). I need to do that in xlsx or txt file. Thank you in advance!
p.s i managed to succeed in saving the graphics from every file that i plotted:
savefig (h1, sprintf('Experimental_drying_rates_%s.fig ', num2str(i)));
savefig (h2, sprintf('Evaporation_coefficent_beta_%s.fig ', num2str(i)));
savefig (h3, sprintf('Calculated_drying_rates_%s.fig ', num2str(i)));
Akzeptierte Antwort
Stephen23
am 2 Sep. 2019
Where T is your table:
for k = ...
T = your table
F = sprintf('Results_%d.txt',k);
writetable(T,F)
end
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!