Save the table to a specific folder

50 ビュー (過去 30 日間)
Zeynab Mousavikhamene
Zeynab Mousavikhamene 2020 年 1 月 21 日
コメント済み: Walter Roberson 2020 年 1 月 21 日
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

採用された回答

Walter Roberson
Walter Roberson 2020 年 1 月 21 日
table_path_format = fullfile(save_table, 'T.xlsx');

その他の回答 (1 件)

Bhaskar R
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
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 ExchangeData Type Conversion についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by