Commands by Category:
Index:
Returns whether a matrix or N-dimensional array is complex or real.
iscplx
x (NxK matrix or N-dimensional array) – data
x_iscplx (scalar) – 1 if x is complex, 0 if it is real.
// Define x x = { 1, 2i, 3 }; // Test if x is complex if iscplx(x); print "X is complex"; else; print "X is not complex"; endif;
See also
Functions hasimag(), iscplxf()
hasimag()
iscplxf()
previous
iscplxf
next
isden