From owner-bug-octave at bevo dot che dot wisc dot edu Mon Feb 3 21:56:53 1997 Subject: Re: signal processing functions From: "John W. Eaton" To: Jim Van Zandt Cc: jeffo at pm1-09 dot eecs dot umich dot edu, bug-octave@bevo.che.wisc.edu Date: Mon, 3 Feb 1997 21:42:31 -0600 On 3-Feb-1997, Jim Van Zandt wrote: | > I have used matlab extensively, but have never written m-files | > for other people. Could you could provide me with a template that | > I should follow for the m-files (documentation, argument checking, etc.)? | | Please do "info octave" and look at the discussion of functions. | | You may have some "bad habits" to break. Just today I discovered that | Matlab apparently does not permit comments (!) -- or else it uses a | different comment convention than Octave. Also, it doesn't permit | "endif" and "endfor", but only the anonymous "end". Octave will allow you to write `end' anywhere the more specific keywords are expected. It just makes things a bit clearer if you use the more specific forms. Also, it can sometimes provide you with better error messages. jwe