[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Index expressions: .* vs &
From: |
Mike B. |
Subject: |
Re: Index expressions: .* vs & |
Date: |
Fri, 6 Aug 2010 02:02:38 -0700 (PDT) |
Thanks again.
--- On Fri, 6/8/10, c. <address@hidden> wrote:
> From: c. <address@hidden>
> Subject: Re: Index expressions: .* vs &
> To: address@hidden
> Cc: "Octave mai. lis." <address@hidden>
> Date: Friday, 6 August, 2010, 6:47 PM
>
> On 6 Aug 2010, at 10:43, Mike B. wrote:
>
> > Thanks Carlo.
> >
> > I wasn't aware there is a difference. Thought that
> octave treated a real-type zero as a boolean.
>
> If you want you can force that behaviour by casting the
> result of your product to logical:
>
> z1 = logical ((a > 0) .* (a > 1));
>
> c.
>