基于Matlab的QPSK系统设计(多径瑞利信道,采用jakes模型以及指数模型)

本文详细介绍了如何使用Matlab设计一个基于QPSK调制的通信系统,考虑了多径瑞利信道的影响,采用了jakes模型和指数模型进行信道模拟。文章包括主程序及多个子程序,提供了一个完整的实现流程,读者可通过联系作者获取更多子程序。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

主程序:

clc;
clear all;
close all;

ebn0=0:30;
% [qber,qreal]=qpsk(ebn0);
[qber_f,qreal_f]=qpsk_fading(ebn0);


figure(1)
semilogy(ebn0,qber_f,'-*b',ebn0,qreal_f,'-om','LineWidth',2);
xlabel('Eb/N0(dB)')
ylabel('BER')
title('Performance of QPSK')
legend('QPSK Rayleigh(Simulation)','QPSK Rayleigh(Theory)')
axis([0 30 1.00E-5 1.00E+0])
grid on;

子程序1:

% qpsk_fading.m
%
% Simulation program to realize QPSK transmission system
% (under one path fading)
%
% Programmed by H.Harada and T.Yamamura
%

%******************** Preparation part *************************************
function [ber_f,real_f]=qpsk_fading(ebn0)

sr=256000.0; % Symbol rate
ml=2;        % ml:Number of modulation levels (BPSK:ml=1, QPSK:ml=2, 16QAM:ml=4)
br=sr .* ml; % Bit rate
nd = 100;    % Number of symbols that simulates in each loop
lth=length(ebn0);     % Eb/N0
IPOINT=8;    % Number of oversamples

ber_f=zeros(1,lth);
real_f=(1-1./sqrt(1+1./10.^(ebn0/10)))/2;
%************************* Filter initialization ***************************

irfn=21;                  % Number of taps
alfs=0.5;                 % Rolloff factor
[xh] = hrollfcoef(irfn,IPOINT,sr,alfs,1);   %Transmitter filter coefficients 
[xh2] = hrollfcoef(irfn,IPOINT,sr,alfs,0);  %Receiver filter coefficients 

%******************* Fading initialization ********************
% If you use fading function "sefade", you can initialize all of parameters.
% Otherwise you can comment out the following initialization.
% The detailed explanation of all of valiables are mentioned in Program 2-8.

% Time resolution

tstp=1/sr/IPOINT; %采样周期

% Arrival time for each multipath normalized by tstp
% If y
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值