Using variable value to name a folder

1 visualizzazione (ultimi 30 giorni)
hdiba
hdiba il 25 Apr 2016
Commentato: hdiba il 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!

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 25 Apr 2016
Modificato: Azzi Abdelmalek il 25 Apr 2016
Name=4205;
writetable(T,sprintf('%d.csv',Name));

Più risposte (0)

Categorie

Scopri di più su Tables in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by