help-octave
[Top][All Lists]
Advanced

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

Re: Octave's and Matlab's limitations


From: Jordi Gutiérrez Hermoso
Subject: Re: Octave's and Matlab's limitations
Date: Thu, 22 Nov 2012 09:02:05 -0500

On 22 November 2012 08:56, Jordi Gutiérrez Hermoso <address@hidden> wrote:
> On 22 November 2012 08:51, Francesco Potortì <address@hidden> wrote:
>> I see.  But again, is there another language (preferably an interpreted
>> one) that allows things like
>>
>>   A([1:2:97 98 99],[1:end-1]) = (B > C);
>>
>> or
>>
>>   A(A > 0) += 128;
>>
>> ?
>
> Julia:
>
>     http://julialang.org/
>
> We'll have to wait some time for it to pick up while we all rewrite
> all of our numerical routines for it, though.

I should add, these don't look so bad in numpy. It allows logical
indexing (they more sensibly call it boolean indexing, though). Here,
take a look at their equivalence table:

    
http://www.scipy.org/NumPy_for_Matlab_Users#head-5a9301ba4c6f5a12d5eb06e478b9fb8bbdc25084

- Jordi G. H.


reply via email to

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