Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: identifying complex numbers
Replies: 4   Last Post: Aug 9, 2012 7:32 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Young Ryu

Posts: 139
Registered: 1/7/08
identifying complex numbers
Posted: Aug 8, 2012 8:52 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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!



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.