[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Matlab logical test case
From: |
fgnievinski |
Subject: |
Re: Matlab logical test case |
Date: |
Sun, 2 Mar 2014 01:15:04 -0800 (PST) |
Juan Pablo Carbajal-2 wrote
> On Fri, Feb 28, 2014 at 11:19 PM, Juan Pablo Carbajal
> <
> ajuanpi+dev@
> > wrote:
>> On Fri, Feb 28, 2014 at 11:12 PM, Rik <
> rik@
> > wrote:
>>> x = [-1, 0, i]
>>> logical (x)
>> ??? Error using ==> logical
>> Complex values cannot be converted to logicals.
>
> Now, I would ask why... any nonempty is true...why sqrt(-1) would not be
> true...
> octave --brain-death
maybe because a complex value could be argued to have two logical solutions,
one for each real and imaginary parts, as each can be nonzero independently
from the other part.
-F.
--
View this message in context:
http://octave.1599824.n4.nabble.com/Matlab-logical-test-case-tp4662522p4662573.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.
- Re: Matlab logical test case,
fgnievinski <=