How do i generate a mapping qpsk?
조회 수: 42 (최근 30일)
이전 댓글 표시
cant found what function apply for [I,Q] = mappingqpsk
clear all, close cll, clc;
%-------------------------------------------------------------------------%
% Create bits to transmit %
%-------------------------------------------------------------------------%
load('bitstream.mat')
%-------------------------------------------------------------------------%
% Map bits for transmition %
%-------------------------------------------------------------------------%
[I,Q] = mappingqpsk('bitstream');
figure(1)
subplot(2,1,1)
stem(I)
title('IQ')
legend('I')
subplot(2,1,2)
stem(Q,'r')
legend('Q')
댓글 수: 0
답변 (1개)
Pulkit
2022년 9월 14일
According to my understanding you are trying to map input bitstreams to QPSK symbols, but you were unable to find function to do so in MATLAB.
The ‘QPSKModulator’ function from the communication toolbox could be used to achieve this functionality. The following example code might help you.
%Creating Bitstream
bitstream=[0,1,1,1,1,1,0,1]'
%Create QPSK Modulator system object
hMod = comm.QPSKModulator('BitInput',true)
%Modulating input bitstream
modOut = step(hMod, bitstream)
%Seperating real and Imag from Complex type
I=real(modOut)
Q=imag(modOut)
Please refer to this documentation link for more information regarding constellation used by 'QPSKModulator' function to map input bitstreams to QPSK symbols.
or
Type the following command into the MATLAB command window to get more insight.
help comm.QPSKModulator
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 QPSK에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!