Writing 'help' functions as m-files

David Bateman David.Bateman at motorola.com
Thu Mar 27 11:08:29 CDT 2008


John W. Eaton wrote:
> Yes.  If the doc string for a .oct file is empty, Octave will look for
> a .m file of the same name.  The way it works now is possibly
> confusing (but apparently it is compatible behavior).  If foo.oct with
> no doc string appears somewhere in the path before foo.m with a doc
> string, Octave will display the documentation from the .m file even
> though it will find and execute foo.oct.  It might be better for it to
> simply find the function it would execute, then if no doc string is
> defined for it, only look for the corresponding .m file rather than
> searching the path again.  It's hard to imagine that being
> incompatible in this way would be a bad thing...
>
>   

As Matlab doesn't support the Octave API and mex-files can't have
help-string, in what way would this be incompatible?

D.



-- 
David Bateman                                David.Bateman at motorola.com
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob) 
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax) 

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary



More information about the Octave-maintainers mailing list