isrealΒΆ
isreal checks if its argument is a real scalar or real matrix.
-
bool = isreal(m)
Return Value
bool is TRUE (1), if the argument is a real scalar or real matrix and FALSE (0), if the argument is of another type.
Parameters
-
m
m is a scalar, matrix or function.
Example
a = 1.23
isreal(a)
1.0000
isreal(sin)
0.0000
isreal(1 + 3i)
0.0000
See also
id-539495