Save a Table as a .csv in a Specified Folder
68 ビュー (過去 30 日間)
古いコメントを表示
Hello,
Here is the code I have:
save_table ='C:\Users\Folder Path\Data';
table_path_format = [save_table 'Name_of_File.csv'];
writetable(T,table_path_format);
where T is a 90 x 8 table.
Am I skipping a step?
Thanks.
0 件のコメント
採用された回答
Adam Danz
2022 年 11 月 8 日
編集済み: Adam Danz
2022 年 11 月 8 日
The accepted answer in the question you followed uses fullfile to construct the file path. That's much safer than constructing the file path by concatenating char vectors (like you're doing). Your table_path_format is missing a file separator character. fullfile adds that for you.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!