Contents Previous Next Subchapters

Listing the Variables in a MAT-File
Syntax mfvars(file)
See Also mfread

Description
Returns a character matrix containing the variables in the MAT-file specified by the character row vector file. The value returned contains nr rows where nr equals the number of variables in file. The value returned contains nc columns where nc is the length of the longest variable name in file.

Example
If in MATLAB you enter the commands
     x = [ 1 2 3 ]
     save tst.mat
MATLAB will create the file tst.mat which contains one variable x. If you continue the example by entering
     mfvars("tst.mat")
at the O-Matrix prompt, O-Matrix will respond
     x