help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What should be the extension of octave files?


From: Keith Goodman
Subject: Re: What should be the extension of octave files?
Date: Mon, 27 Feb 2006 13:43:52 -0800

On 2/27/06, kamaraju kusumanchi <address@hidden> wrote:

> What should be the extension of octave files when the octave programs
> are not compatible with matlab? Should it always be .m or can it be
> something else?
>
> For example, in matlab the function definitions look like
>
> function name
>   body
> end

Your example above works in Octave. The "end" is optional in Octave
(and Matlab). So this works too

function name
     body

Or you can use endfunction if you like.



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]