octave-maintainers
[Top][All Lists]
Advanced

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

Matlab logical test case


From: Rik
Subject: Matlab logical test case
Date: Fri, 28 Feb 2014 14:12:47 -0800

2/28/14

Could someone run the following in Matlab?

x = [-1, 0, i]
logical (x)

According to the documentation this should produce an error, while Octave
happily converts any non-zero value including 'i' to true.

--Rik


reply via email to

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