![]() |
Exploiting MATLAB's Data Structures |
who
lists the variables in the workspace or a file. who,
itself, displays the variables in the workspace. With an output argument,
s = who, returns the names of the variables in the workspace
as a cell array of strings. Use s = who('-file',topo.mat),
to return the names of the variables in the MAT-file.
whos,
also lists the names of the variables in a workspace or file but also includes
other information like the size of each variable. When used with an output
argument, s = whos, returns a structure that contains
the names as well as this extra information.
load
to load a MAT-file into the current workspace.
intersect(A,B)
when A and B are cell arrays of
strings returns the strings that are in both A and
B.
strmatch(S,LIST)
returns the index of the string S in the cell array
of strings LIST. Use the additional input strmatch(S,LIST,'exact')when
exact matches are required.
![]()
Copyright © 1997 The
MathWorks, Inc.
clay@mathworks.com
$Revision$ $Date$