Octave review
Jaroslav Hajek
highegg at gmail.com
Mon Feb 9 02:25:45 CST 2009
On Mon, Feb 9, 2009 at 9:11 AM, Matthias Brennwald
<matthias at brennwald.org> wrote:
>
> On Feb 7, 2009, at 7:03 PM, help-octave-request at octave.org 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
More information about the Help-octave
mailing list