How to save a txt file in matlab with the specified name I want?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Luccas S.
am 14 Apr. 2021
Kommentiert: Luccas S.
am 14 Apr. 2021
Example:
filename = input('Enter the file name: ','s')
A
save(fullfile('directory path','filename.txt'),'A','-ascii')
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 14 Apr. 2021
fullname = fullfile('directory path', [filename '.txt']);
save(fullname, 'A', '-ascii')
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Files and Folders finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!