Contents Previous Next Subchapters

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

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.

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
at the O-Matrix prompt, O-Matrix will respond