real-valued signal constellation has hidden imaginary part
Show older comments
Hi guys!
I found something which isn't so nice in Matlab. When you create a demodulator object with
h = modem.pammod('M',2,'InputType', 'Bit','SymbolOrder','Gray');
the signal constellation should be real-valued. If you look at h.constellation you see no imaginary part, but isreal(h.constellation) gives back a zero, which means the constellation points do have a imaginary part. For me it was a little bit annoying, because I cannot use mxIsComplex to determine whether a signal constellation is complex or real-valued. Do you have any clever suggestions for a workaround.
best regards, Bernhard
Accepted Answer
More Answers (1)
Walter Roberson
on 9 Feb 2011
isreal(h.constellation + 0)
I don't know a fast way to do that at the mex level though.
Categories
Find more on Multirate Signal Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!