The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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: 140
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


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?


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.