www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/StoreVariableListInCellArrayExample.m

    %% Store Variable List in Cell Array  

%% 
% Store the list of variable names in |durer.mat| in cell array |C|. 
C = who('-file','durer.mat');  

%% 
% Display the contents of |C|. 
for k=1:length(C)
   disp(C{k})
end