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

1 vue (au cours des 30 derniers jours)
Kate
Kate le 5 Juin 2013
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

Réponse acceptée

Walter Roberson
Walter Roberson le 5 Juin 2013
save(sitename);

Plus de réponses (1)

Kate
Kate le 5 Juin 2013
Thanks

Catégories

En savoir plus sur Data Import and Analysis dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by