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!
0 个评论
采纳的回答
Azzi Abdelmalek
2016-4-25
编辑:Azzi Abdelmalek
2016-4-25
Name=4205;
writetable(T,sprintf('%d.csv',Name));
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!