Load .mat - file to base workspace?
Ältere Kommentare anzeigen
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 Kommentare
Joakim Magnusson
am 25 Jun. 2015
This question is a continuation of this one:
And is continued, in a broad sense, here:
Also definitely worth reading:
Akzeptierte Antwort
Weitere Antworten (1)
Anthony Poulin
am 25 Jun. 2015
Hello, you might use the evalin function:
evalin('base', 'load(''matlab.mat'')');
Kategorien
Mehr zu Workspace Variables and MAT Files finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!