资源简介

直接序列扩频通信系统,实现PN码同步,采用串行滑动相关捕获相关峰

资源截图

代码片段和文件信息

% Lab 06
% WiCom_4
% By Kashif Shahzad 
% 01-ET-31
% 4th July 2004

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% CDMA coding and decoding mechanism
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clc
clear

% Generation of Random Bits
r=round(rand(120));

% Chip Pattern for station A B and C
a_one=[1 -1 -1 1 -1 1];
a_zero=-1*a_one;
b_one=[1 1 -1 -1 1 1];
b_zero=-1*b_one;
c_one=[1 1 -1 1 1 -1];
c_zero=-1*c_one;

% Random Allotment of bits to stations AB and C
cdma_seq=[];
for counter=1:20
    switch(randint(11[1 3]))
        case(1)
            if r(1counter)==0;
                cdma_seq=[cdma_seq a_zero];
            else
                cdma_seq=[cdma_seq a_one];
            end
        case(2)
            if r(1counter)==0;
                cdma_seq=[cdma_se

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1190  2004-07-03 21:28  dsss.m

     文件       1858  2004-07-04 12:35  cdma_codec.m

     文件       3940  2010-10-10 17:42  Convolutional+Encoding+and+Viterbi+Decoding.m

     文件       3046  2010-10-10 17:45  QPSK_Modulation.m

     文件        657  2010-10-10 17:44  QPSK1.m

     文件       6942  2010-11-05 18:52  sim_qpskgray_multipath.m

----------- ---------  ---------- -----  ----

                17633                    6


评论

共有 条评论