How would I allow a user of my GUI to load data from a specific location in MATLAB?

2 views (last 30 days)
I would like to perform a load data into the MATLAB workspace from a *.mat file. I would like to do this from a GUI button click.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This can be done by allowing the user to specify the file location by using the UIGETFILE command.
The following example lets user locate and then load workspace from the MAT file.
[file,path] = uigetfile('*.mat','Load workspace from')
load([path file])

More Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Products


Release

R2007b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!