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 件)
参考
カテゴリ
Help Center および File Exchange で Tables についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!