資源簡(jiǎn)介
直接擴(kuò)頻技術(shù)matlab程序仿真,運(yùn)行結(jié)果無障礙,可自行調(diào)參
代碼片段和文件信息
%?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));
評(píng)論
共有 條評(píng)論