How to modulate with qam?
2 views (last 30 days)
Show older comments
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);
0 Comments
Answers (0)
See Also
Categories
Find more on QAM 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!