Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

matlab psd function and QAM

Status
Not open for further replies.

leony

Member level 1
Joined
Feb 28, 2005
Messages
41
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,615
matlab psd function

Hello,
I am tryin to simulate a QAM modulation and demodulation. When I use the PSD function, because there are complex values, I get two sided graph, but I am confused what it represents. The part of the code here:

Code:
.......
%fc=0.25 normalized 
%fs=2

z=cos(2*pi*fc*t)-sqrt(-1)*sin(2*pi*fc*t);
%tx is symbols
modulated=tx.*z;
%get the real of the modulated signal
modulated=real(modulated);
psd(modulated,8192);
............

%demodulation
d=cos(2*pi*fc*t)+sqrt(-1)*sin(2*pi*fc*t);
demodulated=modulated.*d;
psd(demodulated,8192);
For modulation, the signal shifted to 0.25 only (we get the real part) and for the demodulation, it goes to 0.5 and 0 (which are OK), however there is another component at 2 which I think it comes from the complex part. ut I cannot explain why it is at 2.
Can you tell me the reason please?
Thanks...
 

matlab psd

Hi, please attach your whole scripts.
this part is well.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top