[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Writing 'help' functions as m-files
From: |
John W. Eaton |
Subject: |
Re: Writing 'help' functions as m-files |
Date: |
Thu, 27 Mar 2008 12:20:47 -0400 |
On 27-Mar-2008, David Bateman wrote:
| As Matlab doesn't support the Octave API and mex-files can't have
| help-string, in what way would this be incompatible?
It works the same way for mex files. So if foo.mex is in dir1 and
foo.m with a doc string is in dir2, with dir2 appearing after dir1 in
the path, Matlab finds the doc string in dir2/foo.m even though it
will call dir1/foo.mex. This could lead to confusion as the two files
might be completely separate. At least if they appear side-by-side in
the same directory, it would seem more likely that the documentation
corresponds to the mex file.
jwe