Save the table to a specific folder
53 次查看(过去 30 天)
显示 更早的评论
I use this code to save the matlab table. When I run the code, it is done proerly but no table is found at the folder. Any idea?
save_table='C:\Users\imagej output\set test\ImageJ_Result_PostProcessing';
table_path_format = [save_table 'T.xlsx'];
writetable(T,table_path_format);
Thank you
0 个评论
采纳的回答
更多回答(1 个)
Bhaskar R
2020-1-21
编辑:Walter Roberson
2020-1-21
table_path_format = [save_table '\T.xlsx'];
% you forget to put accurate path that is \ operator
% or correct way is to use fullfile table_path_format = fullfile(save_table,'T.xlsx');
1 个评论
Walter Roberson
2020-1-21
\ is a text character in that context, not an operator. \ is a "directory separator" at the operating system level; https://en.wikipedia.org/wiki/Path_(computing)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!