- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Sir/Madam:
How are you?
I have a problem to ask you.
For example, I have a complex typevariable A
and a real type variable B, now I want to
make the value of B as the imaginary part of A.
I use the command like : AIMAG(A)=B ,but it's wrong;
and I try another way like: A=(0,B) ,it's also wrong.
So I don't know what to do.
Maybe this is a very simple question,
however, if you know ,please give some advice.
Thanks a lot!
Yours Sincerely:
Nanhui
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
B=AIMAG(A)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your reply.
But you seems misunderstanding my meaning.
If use : B=AIMAG(A), then it means totransfer value
of the imaginary part of A to variable B, but now
my case is to transfer value of B to the imaginary part
of variable A. So it's the inverse case.
I f you know,please tell me. Thank you very much!!
Yours Sincerely:
Nanhui
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A = CMPLX(REAL(A),B)

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page