Here is a solution
s = load('filename.mat');
this will create a single struct with variable name as filed names. To obtain a vector
Vector = struct2array(s);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!