How to save a txt file in matlab with the specified name I want?
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Luccas S.
le 14 Avr 2021
Commenté : Luccas S.
le 14 Avr 2021
Example:
filename = input('Enter the file name: ','s')
A
save(fullfile('directory path','filename.txt'),'A','-ascii')
0 commentaires
Réponse acceptée
Walter Roberson
le 14 Avr 2021
fullname = fullfile('directory path', [filename '.txt']);
save(fullname, 'A', '-ascii')
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Files and Folders dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!