Effacer les filtres
Effacer les filtres

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

6 vues (au cours des 30 derniers jours)
Luccas S.
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')

Réponse acceptée

Walter Roberson
Walter Roberson le 14 Avr 2021
fullname = fullfile('directory path', [filename '.txt']);
save(fullname, 'A', '-ascii')

Plus de réponses (0)

Catégories

En savoir plus sur Workspace Variables and MAT-Files dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by