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 で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!