[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The fabled "Matlab compatibility"
From: |
c. |
Subject: |
Re: The fabled "Matlab compatibility" |
Date: |
Fri, 9 Nov 2012 10:04:11 +0100 |
On 9 Nov 2012, at 09:15, Lukas Reichlin wrote:
>
> 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")
>
OH, Yes, and another one I forgot:
8) Indexing of expresions: A = B(1:5, 7:11)(1:11)(1:2:end) would never work in
Matlab ...
> It simplifies my code considerably as it helps to avoid many if-else
> constructs for input handling.
>
> Lukas