Using variable value to name a folder
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
hdiba
am 25 Apr. 2016
Kommentiert: hdiba
am 25 Apr. 2016
hi, i have a variable called Name in workspace and would like to save a table to csv using the Name value. Example: Name=4205; writetable(T,?????);
name of output file should be 4205.csv
thanks!
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 25 Apr. 2016
Bearbeitet: Azzi Abdelmalek
am 25 Apr. 2016
Name=4205;
writetable(T,sprintf('%d.csv',Name));
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Tables 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!