chapter  13
5 Pages

Calling Fortran from MATLAB

Now type help diagdom or doc diagdom. This is a simple method for providing online help for your own MEX-files. If both diagdom.m and the compiled diagdom mexFunction are on the MATLAB path, then the diagdom mexFunction is called. If only the M-file is in the path, it is called instead; thus the error statement in diagdom.m above. This usually means that the diagdom mexFunction has not yet been compiled. Triggering an error in this M-file is much better than returning silently.