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

1 visualizzazione (ultimi 30 giorni)
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

Risposta accettata

Walter Roberson
Walter Roberson il 5 Giu 2013
save(sitename);

Più risposte (1)

Kate
Kate il 5 Giu 2013
Thanks

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by