资源说明:%main_IS95_forward.m
%此函数用于IS-95前向链路系统的仿真,包括扩
%频调制,匹配滤波,RAKE接收等相关通信模块。
%仿真环境: 加性高斯白噪声信道.
%数据速率 = 9600 KBps
%
clear all
close all
clc
disp('--------------start-------------------');
global Zi Zq Zs show R Gi Gq
clear j;
show = 0; %控制程序运行中的显示
SD = 0; % 选择软/硬判决接收
%-------------------主要的仿真参数设置------------------
BitRate = 9600; %比特率
ChipRate = 1228800; %码片速率
N = 184; %源数据数
MFType = 1; % 匹配滤波器类型--升余弦
R = 5;
%+++++++++++++++++++Viterbi生成多项式++++++++++++++++++
G_Vit = [1 1 1 1 0 1 0 1 1; 1 0 1 1 1 0 0 0 1];%Viterbi生成多项式矩阵
K = size(G_Vit, 2); %列数
L = size(G_Vit, 1); %行数
%++++++++++++++++++++++++++++++++++++++++++++++++++++++
%++++++++++++++++++++++Walsh矩阵++++++++++++++++++++++++
WLen = 64; %walsh码的长度
Walsh = reshape([1;0]*ones(1, WLen/2), WLen , 1); %32个1 0行
%Walsh = zeros(WLen ,1);
%++++++++++++++++++++++++++++++++++++++++++++++++++++++
%++++++++++++++++++扩频调制PN码的生成多项式++++++++++++++
%Gi = [ 1 0 1 0 0 0 1 1 1 0 1 0 0 0 0 1]';
%Gq = [ 1 0 0 1 1 1 0 0 0 1 1 1 1 0 0 1]';
Gi_ind = [15, 13, 9, 8, 7, 5, 0]'; %i路PN码生成多项式参数
Gq_ind = [15, 12, 11, 10, 6, 5, 4, 3, 0]'; %q路PN码生成多项式参数
Gi = zeros(16, 1); ×1的0矩阵
Gi(16-Gi_ind) = ones(size(Gi_ind));%根据Gi_ind配置i路PN码生成多项式
Zi = [zeros(length(Gi)-1, 1); 1];
% I路信道PN码生成器的初始状态
Gq = zeros(16, 1); ×1的0矩阵
Gq(16-Gq_ind) = ones(size(Gq_ind)); %根据Gq_ind配置q路PN码生成多项式
Zq = [zeros(length(Gq)-1, 1); 1];
% Q路信道PN码生成器的初始状态
%++++++++++++++++++++++++++++++++++++++++++++++++++++++
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。