I wanna save string data in my gui with txt format but I want to choose directory and file name in dialog box
조회 수: 1 (최근 30일)
이전 댓글 표시
for example;
string=[100, 150, 200]
I want to save this data with .txt format in dialog box which enables me to choose directory and file name like uiputfile.
댓글 수: 0
채택된 답변
David Sanchez
2013년 5월 22일
[file_name PathName] = uigetfile('*.mat','Select *.mat file');
full_file_path = fullfile(PathName, file_name);
fid = fopen('my_txt_file.txt','w'); % open file for writting
fwrite(fid,full_file_path);
fclose(fid);
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Low-Level File I/O에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!