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: Quentin Spencer
Subject: Re: What should be the extension of octave files?
Date: Mon, 27 Feb 2006 15:44:29 -0600
User-agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929)

kamaraju kusumanchi wrote:

kamaraju kusumanchi wrote:

I have browsed through /usr/share/doc/octave2.9-doc/octave.pdf which is the octave manual shipped with debian unstable octave 2.9 packages.

This manual seems to be written in Feb 1997. Have there been no changes done to octave since then? or was this document just not updated with the latest changes?

In the case of the later, Is there any latest documentation available (except other than reading the source code)?

thanks
raju

Sorry I forgot to ask the actual question I started out with.

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

where as in octave the definitions look like

function name
 body
endfunction

which does not work in matlab.


You can still use the Matlab syntax in Octave. Octave still only recognizes .m as the file extension for script files and functions, so if you want your m files to be compatible with both environments, make sure you use the correct Matlab syntax. Yes, it is possible to create Matlab-incompatible m files that will run in Octave.

-Quentin



-------------------------------------------------------------
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]