saving workin space variable

6 visualizaciones (últimos 30 días)
Raviteja
Raviteja el 10 de Nov. de 2011
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?

Respuesta aceptada

per isakson
per isakson el 10 de Nov. de 2011
Doc says:
save(filename, variables)
try
save('myfile.mat', 'myvar' )

Más respuestas (0)

Categorías

Más información sobre Workspace Variables and MAT-Files en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by