help-octave
[Top][All Lists]
Advanced

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

Re: Re: Octave review


From: Jaroslav Hajek
Subject: Re: Re: Octave review
Date: Mon, 9 Feb 2009 09:25:45 +0100

On Mon, Feb 9, 2009 at 9:11 AM, Matthias Brennwald
<address@hidden> wrote:
>
> On Feb 7, 2009, at 7:03 PM, address@hidden wrote:
>
>>> The syntax is identical to Matlab's syntax
>>>
>>> It's close, but there are some differences.
>>
>> What are we missing as far as syntax goes? I thought it was only
>> specific functions that are missing, or features like object
>> orientation.
>
> There is very few missing from Octave, but there are quite a few
> things in Octave that are not in Matlab. Take comments as an example:
> the '#' works in Octave (and it's the default, in fact), but Matlab
> does not understand it. Or strings: mystring = "Hello?" will throw an
> Error in Matlab, but not in Octave.
>
> So, while the statement 'Octave syntax is almost identical to that of
> Matlab' is usually understood in the sense that Octave syntax is
> largely compatible with that of Matlab, the reverse is certainly not
> true. This may be a nice feature, but it may also be considered as a
> problem (especially if one uses Octave to write code that should also
> work with Matlab).
>

A problem? Anyone is, of course, free to restrict himself to the
Matlab-compatible subset, at the cost of missing some really useful
extensions (like, e.g., function default param values).

-- 
RNDr. Jaroslav Hajek
computing expert
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz


reply via email to

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