whosmat
List variables in an valid .mat file with sizes and types.
📝Syntax
whosmat(filename)
st = whosmat(filename)
whosmat(filename, var1, ..., varN)
st = whosmat(filename, var1, ..., varN)
📥Input Arguments
Parameter Description
filename a string: .mat filename.
var1, ..., varN string: Names of variables to inspect.
📤Output Arguments
Parameter Description
st stores information about the variables in the structure array st.
📄Description

whosmat lists variables in an valid .mat file.

💡Examples
A = ones(3, 4);
B = 'Nelson';
C = sparse(true);
D = sparse(3i);		
savemat([tempdir(), 'example_whosmat-v7.3.mat'], 'A', 'B', 'C', 'D', '-v7.3')
whosmat([tempdir(), 'example_whosmat-v7.3.mat'])
st = whosmat([tempdir(), 'example_whosmat-v7.3.mat'])
🔗See Also
whosnh5whos
📚Bibliography
Thanks to MATIO library (http://sourceforge.net/projects/matio/).
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub