How to modulate with qam?

2 views (last 30 days)
Dikshant Adhikari
Dikshant Adhikari on 21 Sep 2017
How do I use the modulate function with the qam parameter? My code is below, but I do not think this is the correct way.
%%Time specifications:
Fs = 737e6; % samples per second
dt = 1/Fs; % seconds per sample
StopTime = 0.000001; % seconds
t = (0:dt:StopTime-dt)'; % seconds
%%Cosine wave:
Fc = 30e6; % hertz
x = cos(2*pi*Fc*t);
%%Sine wave:
y = sin(2*pi*Fc*t);
%%Resize to first 320 points
x = x(1:1:320,:);
y = y(1:1:320,:);
fmSig = modulate(x, Fc*2, Fs, 'qam', y);
plot(fmSig);

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!