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

4 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 27 Giu 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])

Più risposte (0)

Categorie

Scopri di più su Workspace Variables and MAT Files in Help Center e File Exchange

Prodotti


Release

R2007b

Community Treasure Hunt

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

Start Hunting!

Translated by