Load .mat - file to base workspace?
Mostrar comentarios más antiguos
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 comentarios
Joakim Magnusson
el 25 de Jun. de 2015
This question is a continuation of this one:
And is continued, in a broad sense, here:
Also definitely worth reading:
Respuesta aceptada
Más respuestas (1)
Anthony Poulin
el 25 de Jun. de 2015
Hello, you might use the evalin function:
evalin('base', 'load(''matlab.mat'')');
Categorías
Más información sobre Workspace Variables and MAT Files en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!