How to save a txt file in matlab with the specified name I want?

4 ビュー (過去 30 日間)
Luccas S.
Luccas S. 2021 年 4 月 14 日
コメント済み: Luccas S. 2021 年 4 月 14 日
Example:
filename = input('Enter the file name: ','s')
A
save(fullfile('directory path','filename.txt'),'A','-ascii')

採用された回答

Walter Roberson
Walter Roberson 2021 年 4 月 14 日
fullname = fullfile('directory path', [filename '.txt']);
save(fullname, 'A', '-ascii')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFiles and Folders についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by