<< savemat MATIO whosmat >>

whomat


List variables in an valid .mat file.


Syntax


whomat(filename)
ce = whomat(filename)
whomat(filename, var1, ..., varN)
ce = whomat(filename, var1, ..., varN)

Input argument


filename

a string: .mat filename.

var1, ..., varN

string: Names of variables to inspect.

Output argument


ce

cell of strings with variables names.

Description


whomat lists variables in an valid .mat file.

Bibliography


Thanks to MATIO library (http://sourceforge.net/projects/matio/).

Example


A = ones(3, 4);
B = 'Nelson';
C = sparse(true);
D = sparse(3i);		
savemat([tempdir(), 'example_whomat-v7.3.mat'], 'A', 'B', 'C', 'D', '-v7.3')
whomat([tempdir(), 'example_whomat-v7.3.mat'])
ce = whomat([tempdir(), 'example_whomat-v7.3.mat'])

See also


whonh5, who.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< savemat MATIO whosmat >>