MATLAB: How to document a .mat file or add a content file

Is there any way to add a help file or a description file to a .mat in matlab? like Content file can be Auto generated from .m files.

Best Answer

Perhaps the list of contained variables obtained by
whos('-File', MATFileName)
? If this does not match your needs, add a field "contents" to the MAT files or something similar.