How to save a txt file in matlab with the specified name I want?
    2 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Luccas S.
 il 14 Apr 2021
  
    
    
    
    
    Commentato: Luccas S.
 il 14 Apr 2021
            Example:
filename = input('Enter the file name: ','s')
A
save(fullfile('directory path','filename.txt'),'A','-ascii')
0 Commenti
Risposta accettata
  Walter Roberson
      
      
 il 14 Apr 2021
        fullname = fullfile('directory path', [filename '.txt']);
save(fullname, 'A', '-ascii')
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Files and Folders in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

