Using variable value to name a folder

1 次查看(过去 30 天)
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!

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2016-4-25
编辑:Azzi Abdelmalek 2016-4-25
Name=4205;
writetable(T,sprintf('%d.csv',Name));

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Tables 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by