How to modulate with qam?
조회 수: 2 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 QAM에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!