octave-maintainers
[Top][All Lists]
Advanced

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

Re: [OctDev] A few (Octave) ideas


From: David Bateman
Subject: Re: [OctDev] A few (Octave) ideas
Date: Fri, 04 Jun 2010 22:21:40 +0200
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706)

Thomas Treichl wrote:
On 04/06/10 20:44, Jake wrote:
I've seen some of the Octave m files...what is this Octave-style coding?
The two space indentation?

If I remember correctly then this is explained in the Octave manual, examples are:

I used (# is not known by Matlab)
   %# for comments
the Octave-style is
   ## for comments

Matlab uses "end" for all loops, Octave uses
   if .. endif, while .. endwhile, etc.


There are detailed coding standards in the manual. Unfortunately the version of the manual on the website is really out-of-date (how can this be fixed?) so unless you have a recent compiled version of the manual you can read the texinfo source at

http://hg.savannah.gnu.org/hgweb/octave/file/tip/doc/interpreter/contrib.txi

D.



reply via email to

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