logical
Converts a numeric value to logical type.
Syntax
Y = logical(X)
Input argument
X - a numeric value.
Output argument
Y - a logical value.
Description
logical converts a numeric value to logical type.
Nonzero value converted to true and zeros values converted to false.
Complex numbers returns an error.
Example
See also
History
Author
Allan CORNET
Last updated