Using variable value to name a folder

1 visualización (últimos 30 días)
hdiba
hdiba el 25 de Abr. de 2016
Comentada: hdiba el 25 de Abr. de 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!

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 25 de Abr. de 2016
Editada: Azzi Abdelmalek el 25 de Abr. de 2016
Name=4205;
writetable(T,sprintf('%d.csv',Name));

Más respuestas (0)

Categorías

Más información sobre Tables en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by