<< isinteger Types module isnumeric >>

islogical


Return true if variable var is a logical.


Syntax


res = islogical(var)

Input argument


var

a variable

Output argument


res

a logical: true or false

Description


islogical returns a logical 1 if the argument is a logical array and a logical 0 otherwise.

Examples


A = 1;
res = islogical(A)

B = logical(1);
res = islogical(B)

See also


logical.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< isinteger Types module isnumeric >>