How to read data from .m file in GUI?
19 views (last 30 days)
Show older comments
My GUI would contain one drop-down menu to select the data files. But I don't know how to extract data from m file to GUI
can u help me.
2 Comments
Rik
on 20 Nov 2021
Extracting data from an m file is fairly difficult. M files contain code that could create variables when it is run. Are you sure you don't mean mat files?
Accepted Answer
Cris LaPierre
on 20 Nov 2021
You would have to run the script from the gui. Then the variables it creates would exist in the corresponding callback function workspace.
0 Comments
More Answers (0)
See Also
Categories
Find more on Migrate GUIDE Apps 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!