isinteger

Return true if variable var is a integer type array.

Syntax

  • res = isinteger(var)

Input argument

  • var - a variable

Output argument

  • res - a logical: true or false

Description

isinteger returns a logical 1 if the argument is a integer type (int8, int16 ...) array and a logical 0 otherwise.

Examples

A = 3;
res = isinteger(A)
B = uint8(3);
res = isinteger(B)
A = single([3, i]);
res = isinteger(A)

See also

isa, isint8.

History

Version
Description

1.0.0

initial version

Author

Allan CORNET

Last updated