Load .mat - file to base workspace?
Show older comments
I'm writing a gui script. I want to get a .mat - file and i need to use it in many functions in my script. Is loading the file to the base workspace a good solution and in that case, how do i load it to the base workspace? "load(filename)" only loads the file to the callers workspace if I'm right.
2 Comments
Joakim Magnusson
on 25 Jun 2015
This question is a continuation of this one:
And is continued, in a broad sense, here:
Also definitely worth reading:
Accepted Answer
More Answers (1)
Anthony Poulin
on 25 Jun 2015
Hello, you might use the evalin function:
evalin('base', 'load(''matlab.mat'')');
Categories
Find more on Workspace Variables and MAT Files 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!