필터 지우기
필터 지우기

finction datestr and writetable

조회 수: 1 (최근 30일)
han han
han han 2019년 11월 14일
댓글: han han 2019년 11월 14일
I want to save the file to the folder I created with datestr.
But the path path always shows an error, how can I modify it?
擷取.JPG

채택된 답변

Nicolas B.
Nicolas B. 2019년 11월 14일
May I ask you to use the "code" function of this website to add your code instead of a picture. It makes it easier for us to copy your code if necessary.
In your code, I see that the filename of your output file is t/a.txt. Then, except if you have a folder named t, it would not work. So my first suggestion would be to get the real path:
writetable(T, fullfile(t, 'a.txt'), 'Delimiter', ' ', 'writevariablenames', false);
Second, the line with fullfile in your code is useless because fullfile is supposed to be used to merge a full filename path. So you can skip it.
  댓글 수: 1
han han
han han 2019년 11월 14일
Thank you for your answer, I got it!!!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by