How to specifiy the data format to export generated data from matlab?!
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi Guys,
I try to save data to a text format. The name of the data exported is:
name=[Model_File '__ Timeslot_STI: ' num2str(Timeslot)]
fid = fopen(name,'w'); % Create/open file discarding content
now i dont know how to specify the file type, when i creat this document. I would like to save it as txt.file... Does anyone know how to arrange this?
I am very glad for your help! Best regards, John
댓글 수: 0
채택된 답변
Walter Roberson
2015년 10월 9일
name = sprintf('%s__ Timeslot_STI: %g.txt', Model_File, Timeslot);
fid = fopen(name, 'wt'); % Create/open file discarding content
댓글 수: 5
Walter Roberson
2015년 10월 12일
Colons (':') are not permitted in MS Windows file names as they are reserved for drive specifications.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!