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

10 visualizaciones (últimos 30 días)
Example:
filename = input('Enter the file name: ','s')
A
save(fullfile('directory path','filename.txt'),'A','-ascii')

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Workspace Variables and MAT-Files en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by