help-octave
[Top][All Lists]
Advanced

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

Re: Indexing


From: Quentin Spencer
Subject: Re: Indexing
Date: Thu, 23 Feb 2006 12:29:36 -0600
User-agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929)

Andy Pugh wrote:

Hmm, an interesting difference between Octave and Matlab has come to
my attention.

I recently wrote an Octave routine to slice up STL files. Given a set
of line end coordinates X1 Y1 X2 Y2, if the start was at [1 2] then
the end was at [3 4] and vice versa.

So, I could write (in Octave)

end = [3 4 1 2](start)

Which was neat and satisfying.

I just tried doing the same thing in Matlab at work, and it doesn't work.
I guess this has to count as an extra feature of the Octave Parser?

Yes. This is a feature of Octave that I wished Matlab had long before I even heard of Octave. One of my other favorite features missing from Matlab is the C-style operators: +=, ++, *=, etc. Both of these make for much more compact and easy to read code.

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