MATLAB: Add a help text to a mex file

mex file

how to add a some text , to appear as a help text
thanks in advance

Best Answer

  • The help command looks in the .m file of the same name. So you would have yourfile.mex and yourfile.m with the .m file being just comments in help format.