Using variable value to name a folder
1 view (last 30 days)
Show older comments
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 Comments
Accepted Answer
Azzi Abdelmalek
on 25 Apr 2016
Edited: Azzi Abdelmalek
on 25 Apr 2016
Name=4205;
writetable(T,sprintf('%d.csv',Name));
More Answers (0)
See Also
Categories
Find more on Tables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!