isdouble

Return true if variable var is a double matrix.

Syntax

  • res = isdouble(var)

Input argument

  • var - a variable

Output argument

  • res - a logical: true or false

Description

isdouble returns a logical 1 if the argument is a double matrix and a logical 0 otherwise.

Examples

A = 3;
res = isdouble(A)
A = single(3);
res = isdouble(A)
A = single([3, i]);
res = isdouble(A)
A = [3, i];
res = isdouble(A)

See also

isa, single, double, isfloat.

History

Version
Description

1.0.0

initial version

Author

Allan CORNET

Last updated