Save the table to a specific folder

조회 수: 54 (최근 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 CenterFile Exchange에서 Tables에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by