saving workin space variable

5 views (last 30 days)
Raviteja on 10 Nov 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
but it stored all the 20 variables with name myvar.mat.
To save single variable what I have to do?

Accepted Answer

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

More Answers (0)


Community Treasure Hunt

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

Start Hunting!