%% Display Information on All Variables in MAT-File
% Make a MAT-file object for a file and then display information on all the variables contained in the MAT-file using the object.
% Create a MAT-file object for the sample file topography.mat.

matObj = matfile('topography.mat');

% Display information on all the variables in the file using the MAT-file object.

whos(matObj)

% Copyright 2006 The MathWorks, Inc.