octave-maintainers
[Top][All Lists]
Advanced

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

Re: Matlab logical test case


From: John W. Eaton
Subject: Re: Matlab logical test case
Date: Sun, 02 Mar 2014 13:13:55 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131005 Icedove/17.0.9

On 02/28/2014 05:19 PM, Juan Pablo Carbajal wrote:
On Fri, Feb 28, 2014 at 11:12 PM, Rik <address@hidden> wrote:
x = [-1, 0, i]
logical (x)
??? Error using ==> logical
Complex values cannot be converted to logicals.

I don't know why they wouldn't just convert any value with a non-zero magnitude to TRUE. Is there some undesirable consequence of using that definition?

jwe




reply via email to

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