octave-maintainers
[Top][All Lists]
Advanced

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

Re: The fabled "Matlab compatibility"


From: Lukas Reichlin
Subject: Re: The fabled "Matlab compatibility"
Date: Fri, 9 Nov 2012 09:15:37 +0100

On 09.11.2012, at 08:34, "c." <address@hidden> wrote:

> 
> On 8 Nov 2012, at 23:08, address@hidden wrote:
> 
>> What are some advantages of Octave over Matlab? I do have a small personal
>> list, but I wonder if you can add to it:
>> 
>> 1)  Operators:  ++ , -- , += , -= , *= , /=
>> 
>> 2)  Using # for comments is nice IMO.
>> 
>> 3)  I like it as a console application (e.g. starts faster, clutters my
>> screen less, etc).
>> 
>> 4) I do think it's important that it is Free Software.
> 
> Personally I'd also add:
> 
> 5) A very simple C++ API that allows to embed the Octave interpreter in your 
> own stand-alone application
> (That's obviusly a "corollary" of being Free)
> 
> 6) Broadcasting allows to write very clean code doing complex stuff with N-d 
> arrays
> 
>> Does that more or less cover it, or did I miss something important?
>> 
>> Cheers,
>> Daniel.
> c.


I use the following feature often in my code:

7) Default arguments for functions, i.e.
function ret = foobar (arg1 = "foo", arg2 = "bar")

It simplifies my code considerably as it helps to avoid many if-else constructs 
for input handling.

Lukas

reply via email to

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