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

1 Ansicht (letzte 30 Tage)
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

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 5 Jun. 2013
save(sitename);

Weitere Antworten (1)

Kate
Kate am 5 Jun. 2013
Thanks

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by