Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



identifying complex numbers
Posted:
Aug 8, 2012 8:52 PM


Hi
I'd like to identify complex numbers in a matrix, e.g.
A=[1 2 3 4 5 6 1+2i 5 3]
I'd like to get the following matrix that identifies complex numbers [0 0 0 0 0 0 1 0 0]
I hoped to use a kind of "iscomplex", but there was no such function in matlab. Could you help me to solve this easily?
Thanks!



