How to save a txt file in matlab with the specified name I want?
13 ビュー (過去 30 日間)
表示 古いコメント
Example:
filename = input('Enter the file name: ','s')
A
save(fullfile('directory path','filename.txt'),'A','-ascii')
0 件のコメント
採用された回答
Walter Roberson
2021 年 4 月 14 日
fullname = fullfile('directory path', [filename '.txt']);
save(fullname, 'A', '-ascii')
その他の回答 (0 件)
参考
カテゴリ
Find more on Programming Utilities in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!