%% Store Variable Information in a Structure Array
% Store information about the variables in durer.mat in structure array S.

S = whos('-file','durer.mat');

%
% Display the contents of S.

for k = 1:length(S)
   disp(['  ' S(k).name ...
         '  ' mat2str(S(k).size) ...
         '  ' S(k).class]);
end

% Copyright 2015 The MathWorks, Inc.