Getting variable names from .mat files when they are loaded inside a function

  • Thread starter pxfy
  • Start date
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 cant find a way to make matlab get the variable names!



Can anyone help out? Much appreciated!
 

Want to reply to this thread?

"Getting variable names from .mat files when they are loaded inside a function" You must log in or register to reply here.

Related Threads for: Getting variable names from .mat files when they are loaded inside a function

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top