资源简介
直接扩频技术matlab程序仿真,运行结果无障碍,可自行调参
代码片段和文件信息
% Lab 06
% WiCom_3
% By Kashif Shahzad
% 01-ET-31
% 3rd July 2004
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Direct Sequence Spread Spectrum
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clc
clear
% Generating the bit pattern with each bit 6 samples long
b=round(rand(120));
pattern=[];
for k=1:20
if b(1k)==0
sig=zeros(16);
else
sig=ones(16);
end
pattern=[pattern sig];
end
plot(pattern);
axis([-1 130 -.5 1.5]);
title(‘\bf\it Original Bit Sequence‘);
% Generating the pseudo random bit pattern for spreading
spread_sig=round(rand(1120));
评论
共有 条评论