save(filename, var) cant find workspace variable even if it exist
Show older comments
From my script i am trying to use save to store my workspace stucture to a .mat file. But i get following error message:
>> TestGUI Error using save Variable 'NewTest' not found.
In my script i use save like this:
save('NewTest.mat','NewTest');
I can see that my structure exists in the workspace, any idea why save don't find my variable?
3 Comments
Stephen23
on 24 Jun 2015
Can you please show us a screen shot of the workspace containing this variable?
Does the save call have access to that workspace?
Joakim Magnusson
on 24 Jun 2015
Edited: Joakim Magnusson
on 24 Jun 2015
Stephen23
on 25 Jun 2015
This question is continued here:
Accepted Answer
More Answers (1)
Joakim Magnusson
on 24 Jun 2015
Edited: Joakim Magnusson
on 24 Jun 2015
0 votes
Categories
Find more on Code Performance in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!