how to open an .m file with a dialog box
Show older comments
Hi, is it possible to open a file from a dialog box as if you were calling from the command window? Specifically, I need to load some variables to use in a GUI from an .m file in a specific directory. I'm going crazy!
3 Comments
Adam
on 5 Mar 2015
Variables are generally stored in a .mat file not a .m file. Is that what you mean?
Or do you mean you wish to open a .m file containing a script that will create some variables and you then want to use the variables that result from that?
Alessandro Sardelli
on 5 Mar 2015
Adam
on 5 Mar 2015
Why don't you just have your script save the variables in a .mat file then you can load that wherever you want?
Accepted Answer
More Answers (0)
Categories
Find more on Workspace Variables and MAT Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!