- #1
pxfy
- 1
- 0
hi all, I got a simple MATLAB question here.
I am writting a function which basicaly load my data (in .mat format), do something to them, and then plot them. The function is something like:
for i=1:n
[name1, path1]=uigetfile('*.mat','load data file')
load([path1 name1]);
end
new_data= do_stuff (variable names from .mat files)
plot(new_data)
The problem here is that after I have loaded the .mat files, I can't find a way to make MATLAB get the variable names!
Can anyone help out? Much appreciated!
I am writting a function which basicaly load my data (in .mat format), do something to them, and then plot them. The function is something like:
for i=1:n
[name1, path1]=uigetfile('*.mat','load data file')
load([path1 name1]);
end
new_data= do_stuff (variable names from .mat files)
plot(new_data)
The problem here is that after I have loaded the .mat files, I can't find a way to make MATLAB get the variable names!
Can anyone help out? Much appreciated!