필터 지우기
필터 지우기

representation of the QPSK modulated signal

조회 수: 9 (최근 30일)
Niloofar Jafarnia
Niloofar Jafarnia 2021년 6월 29일
댓글: Niloofar Jafarnia 2021년 7월 20일
I want the code that coresponde the functionality of the QPSK modulator block (simulink). I need to have the signal representation of The QPSK modulated signal that comes from the 'pskmod' funktion,I multiplied it simply by a sine wave but I am not shure if I should use a raised cosine filter instead. what I need at the end is the modulated QPSK signal that can be transmitted. here is my code:
M=4; % modulation order
data = randi([0,M-1],1,100);
Fc=100; % in Hz, carrier frequency
t=0:0.1:(10-0.1); % time step (carrier sine wave)
P=0;
modsig = pskmod(data,M,P); % PSK modulation
carrier = sin(2*pi*Fc*t);% carrier sine wave
sigpsk = carrier.*modsig;
figure
plot(t,sigpsk);
xlabel('Time');
ylabel('Amplitude');
title('psk Modulated Data');

채택된 답변

Arthi Sathyamurthi
Arthi Sathyamurthi 2021년 7월 19일
Hello Niloofar,
To get the code corresponding to the functionality of the QPSK modulator block, use comm.QPSKModulator.
To get a modulated QPSK signal that can be transmitted implement all the blocks of the transmitter. You can use the raised cosine filtering function to implement the raised cosine filter after carrier multiplication for pulse shaping before transmission.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 QPSK에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by