how to load variables in the workspace
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I'm trying to load the variables of a -mat file chosen from a directory and I don't know what I do wrong.
My code is:
[nom, ruta] = uigetfile('*.mat', 'Obrir arxiu');
if isequal (nom,0) %per si prenem cancelar, i no escollim cap arxiu
disp('Has seleccionat Cancel·lar')
else
disp(['Has seleccionat:', fullfile(ruta, nom)])
end
uiimport
I want to program in my file.m, more o less the same function than Import Wizard does, i.e. load all my variables from the .mat file chosen, in my case 'A', 'Length' 'Tinternal' and 'Tstart'.
What do I have to do?
Thanks,
0 Kommentare
Akzeptierte Antwort
Siehe auch
Kategorien
Mehr zu Workspace Variables and MAT Files finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!