I need to load in a .mat file and extract the data. The .mat file will always store one variable with a "Name" and a "Value":
'name' <1024x1280x20 uint8> (for example)
To access the data, I currently have to know the variable name, so I do something like:
matfile = 'somematfile.mat';
load(matfile);
if exist('name','var')
data=name;
end
I'm wondering how to do this without knowing what the variable name is in the MAT File.
Cheers, Sean