Borrar filtros
Borrar filtros

Is there a way to save a .mat file with a variable as a filename?

1 visualización (últimos 30 días)
Hello!
I have a variable defined in my workspace.
Example:
sitename =
US-FR2
How could I save a .mat file with this as the filename (US-FR2.mat), without typing it in manually?
Mil gracias

Respuesta aceptada

Walter Roberson
Walter Roberson el 5 de Jun. de 2013
save(sitename);

Más respuestas (1)

Kate
Kate el 5 de Jun. de 2013
Thanks

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by