saving workin space variable
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I executed my file which consists 20 variables (stored in the workspace after execution). I want to save 1 variable called myvar.mat to save into my working directory.
So I used
>>save('myvar.mat')
but it stored all the 20 variables with name myvar.mat.
To save single variable what I have to do?
0 commentaires
Réponse acceptée
per isakson
le 10 Nov 2011
Doc says:
save(filename, variables)
try
save('myfile.mat', 'myvar' )
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Workspace Variables and MAT-Files dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!