Save generated text file to user specified path
古いコメントを表示
I have a script that generates some data and outputs it to a text file. I want to modify it so it allows the user to save directly to whatever folder they want to save it in, rather than just have it save in the folder with the script. Here is the section that generates the .txt file.
T = [x,y];
fileID = fopen('output_data.txt','w');
fprintf(fileID,'%6s %12s\n','x','y');
fprintf(fileID,'%6.2f %12.8f\n',T);
fclose(fileID);
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および 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!