资源简介
QPSK调制解调源代码及仿真程序,可以根据此程序仿真QPSK的整个过程
代码片段和文件信息
%% Phase Shift Keying Simulation
% This demo shows how to simulate a basic Quarternary Phase Shift Keying
% (QPSK) communication link and to generate empirical performance curves
% that can be compared to theoretical predictions.
% Copyright 1996-2004 The MathWorks Inc.
% $Revision: 1.12.2.5 $ $Date: 2004/04/12 23:01:29 $
%% Initializing variables
% The first step is to initialize variables for number of samples per
% symbol number of symbols to simulate alphabet size (M) and the signal
% to noise ratio. The last line seeds the random number generators.
nSamp = 8; numSymb = 100;
M = 4; SNR = 14;
seed = [12345 54321];
rand(‘state‘ seed(1)); randn(‘state‘ seed(2));
%% Generating random information symbols
% Next use RANDSRC to generate random information symbols from 0 to M-1.
% Since the simulation is of QPSK the symbols are 0 through 3. The first
% 10 data points are plotted.
numPlot = 10;
rand(‘state‘ seed(1));
msg_orig = randsrc(numSymb 1 0:M-1);
stem(0:numPlot-1 msg_orig(1:numPlot) ‘bx‘);
xlabel(‘Time‘); ylabel(‘Amplitude‘);
%% Phase modulating the data
% Use PSKMOD to phase modulate the data and RECTPULSE to upsample to a
% sampling rate 8 times the carrier frequency. Use SCATTERPLOT to see the
% signal constellation.
grayencod = bitxor(0:M-1 floor((0:M-1)/2));
msg_gr_orig = grayencod(msg_orig+1);
msg_tx = pskmod(msg_gr_origM);
msg_tx = rectpulse(msg_txnSamp);
h1 = scatterplot(msg_tx);
set(h1‘position‘[93 680 420 420]);
%% Creating the noisy signal
% Then use AWGN to add noise to the transmitted signal to create the noisy
% signal at the receiver. Use the ‘measured‘ option to add noise that is
% 14 dB below the average signal power (SNR = 14 dB). Plot the
% constellation of the received signal.
randn(‘state‘ seed(2));
msg_rx = awgn(msg_tx SNR ‘measured‘ [] ‘dB‘);
h2 = scatterplot(msg_rx);
%% Recovering information from the transmitted signal
%
相关资源
- QPSK with matlab code and pi/4 DQPSK
- Matlab _ MIMO + QPSK + ML/MMSE/ZF
- 基于matlab的QPSK仿真
- 瑞利衰落信道下无分集,2分集,4分集
- BPSK和QPSK调制解调原理及MATLAB程序
- 基于-MATLAB-的QPSK系统仿真设计与实现
- 单载波为、BPSK、QPSK三种情况下锁相环
- 5份基于MATLAB的关于扩频+BPSK/QPSK仿真代
- 4份直接序列扩频+BPSK/QPSK的MATLAB仿真程
- 一个小通信系统的MATLAB源代码仿真或
-
OFDM的QPSK的simuli
nk仿真,matlab 2016a版 - 多进制空时分组码(STBC)matlab仿真
- QPSK信号+白噪声程序MATLAB
-
QPSK调制simuli
nk实现 - matlab的qpsk通信仿真
- DQPSK调制与解调
- QPSK松尾环载波同步MATLAB仿真
- 基于Matlab的PI/4 DQPSK的调制解调源代吗
- QPSK高斯白噪声信道和瑞利信道的误码
-
OQPSK调制解调器Simuli
nk仿真 - OFDM QPSK调制解调
- qpsk调制stbc仿真
- QPSKMATLAB仿真程序
- 基于MATLAB的DQPSK/QPSK调制解调实现
- QPSK matlab 调制解调代码
- qpsk的matlab实现
- 8QAM、QPSK误码率计算matlab程序
- QPSK与OQPSK数字调制方式MATLAB代码
-
OQPSK的Matlab_Simuli
nk调制解调仿真系统 -
QPSK /OQPSK simuli
nk模型
评论
共有 条评论