I am writing a Matlab mex-file. However, mex-files seem to have a serious limitation: help mexfilename
won't cause a help text to appear.
I could circumvent this by writing a m-file, that ultimately calls the mex-file, but includes help, but there has to be a better way.
On the other side, that way I could do all the error-checking in the m-file, where it is far more convenient to do so...