亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? early_late_track.m

?? Symbol Timing Tracking Using Early-Late Techniques by matlab
?? M
字號:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Part a  from report6_DSP.pdf
% To build upon Part I, we are to implement a LMS equalizer using Matlab. This first part is initial
% timing acquisition. To do this, we need to create a data sequence. We use an m-sequence for
% this with state vector of 8, a connection polynomial of 37 and a length of 127. This gives us a
% PN code of length 127. The length of 127 was purely arbitrary. The function mseq was used
% from a previous lab.
clear all
close all
data_seq = mseq(8,37,127);
%For our signal, we are required to have 8 samples per symbol. To do this, we
%basically over-sampled the signal data_seq.
samples=8;
current_chip=1;
xmt_index=1;
for i=1:length(data_seq)
    current_bit=data_seq(i);
    for j=1:samples
        xmt_bpsk(xmt_index) = current_chip*current_bit;
        xmt_index = xmt_index+1;
    end
end

% We then pass the signal xmt_bpsk through a channel filter of specifications [1 0 0 0 0.7 0 0 -0.3].
% We also have to define a matched filter of length 8 because we have 8 samples per symbol.

h_channel=[1 0 0 0 0.7 0 0 -0.3];
chan_out_shift=filter(h_channel,1,xmt_bpsk);
h_mf=[1 1 1 1 1 1 1 1];
% Next we insert a timing delay by shifting the data sequence to where it loses an arbitrary number
% of samples in the beginning.
delay=0;
data_seq=data_seq(1,delay+1:length(data_seq));
xmt_bpsk=xmt_bpsk(1,delay+1:length(xmt_bpsk));

buffer=[];
acq_stat=[];
T=8;
acq_add=0;
cnt=0;
sym=10;
for j=1:sym
    index=1;
    a=1+cnt;
    b=(T)+cnt;
    for k=a:b
        buffer=chan_out_shift(1,k:(T-1)+k);
        temp=sum(buffer.*h_mf);
        acq_stat(index) = abs(temp);
        index=index+1;
        cnt=cnt+1;
    end
%     figure(j)
%     plot(acq_stat);
    acq_add=acq_add + acq_stat;
    %[acq_max,acq_index]=max(acq_add/j)
end
[acq_max,acq_index]=max(acq_add/sym)

%%%%%%%%%%%%%part a acquisition over


%%%%%%%%%%%%%%part b tracking begin
% For part b, we are required to do symbol tracking. We use the same code as for part a to do the
% acquisition and to set up our data sequence. The only difference is we have a data sequence of
% length 2005 for this part. Once we acquire the signal and find the index of where the peaks were
% found, we must shift our data sequence by the index so that we can have maximum correlation at
% the start of each 8 samples. To accomplish the tracking, we use the Least Mean Squared method
% with blind equalization. This means that our equalizer has no prior information about our
% incoming data. We set up a filter to be used for the equalizer. This filter consists of 8 ones and 7
% zeros. We divide the filter by 8 so we normalize the 8 ones.

taps=15;
h_eq=[1 1 1 1 1 1 1 1 0 0 0 0 0 0 0]./8;
zi=zeros(1,14);
mu=0.005;
%fill tap delay line
sym_index = 1;
for i = 1:15
    new_samp = chan_out_shift(i);  %
    buffer = [new_samp zi];
    [y(sym_index),zi] = my_filter(h_eq,new_samp,zi);
end
%--------------------%
% Blind Equalization %
%--------------------%
samp_cnt = 0;
for i=16:length(chan_out_shift)  %
    samp_cnt=samp_cnt+1;
    new_samp=chan_out_shift(i);   %chan_out_shift
    buffer=[new_samp zi];
    [y(sym_index),zi]=my_filter(h_eq,new_samp,zi);
    if samp_cnt == T
        d=sign(y(sym_index));
        error(sym_index)=d-y(sym_index);
        grad=error(sym_index).*buffer;
        h_eq = h_eq + mu.*grad(length(grad):-1:1);
        sym_index = sym_index + 1;
        samp_cnt = 0;
    end
end
plot(error)
grid;
title('Error Signal');



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%part c
% sym_index=0;
% n_sym=200*samples;
% i=1;
% while sym_index < length(chan_out)
%     sym_index=sym_index+1+(1/n_sym);
%     chan_out_loss(i)=chan_out(round(sym_index));
%     i=i+1;
% end


%In doing tracking, we have to keep up with an on-time, an early, and a late statistic. So each
%statistic from part b now has 3 statistics. If the sample is early, we must take the sample above it
%and if it’s late, we take the one before it. This will constantly make sure our peak is actually a
%peak.

samp_cnt = 0;
zi_on=zi;
zi_early=zi;
zi_late=zi;
i=15;
while sym_index <= 2000
        i=i+1;
        samp_cnt=samp_cnt+1;
        new_samp_on=chan_out_shift(i);
        new_samp_late=chan_out_shift(i-1);
        new_samp_early=chan_out_shift(i+1);
        [y_on(sym_index),zi_on]=my_filter(h_eq,new_samp_on,zi_on);
        [y_early(sym_index),zi_early]=my_filter(h_eq,new_samp_early,zi_early);
        [y_late(sym_index),zi_late]=my_filter(h_eq,new_samp_late,zi_late);
        if samp_cnt == T
                d_on=sign(y_on(sym_index));
                d_early=sign(y_early(sym_index));
                d_late=sign(y_late(sym_index));
                error_on(sym_index)=d_on-y_on(sym_index);
                error_early(sym_index)=d_early-y_early(sym_index);
                error_late(sym_index)=d_late-y_late(sym_index);
                [error_stat(sym_index),error_index]=min([abs(error_on(sym_index)),...
                abs(error_early(sym_index)), abs(error_late(sym_index))]);
                if error_index==1
                    new_samp=new_samp_on;
                    output_bit(sym_index) = d_on;
                    error_stat(sym_index) = error_on(sym_index);
                    T=8;
                    zi=zi_on;
                elseif error_index==2
                    new_samp=new_samp_early;
                    output_bit(sym_index) = d_early;
                    error_stat(sym_index) = error_early(sym_index);
                    T=9;
                    zi=zi_early;
                elseif error_index==3
                    new_samp=new_samp_late;
                    output_bit(sym_index) = d_late;
                    error_stat(sym_index) = error_late(sym_index);
                    T=7;
                    zi=zi_late;
                end
                grad=error_stat(sym_index).*buffer;
                h_eq = h_eq + mu.*grad(length(grad):-1:1);
                buffer=[new_samp zi];
                sym_index = sym_index + 1;
                samp_cnt = 0;
                continue;
        end
        buffer=[new_samp_on zi_on];
end



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%part d
if (F == 31 & sym_index > 100)
    F_sym_index=sym_index;
    if blind == 1 %finished blind, enter training
          blind=0;
    else %finished training, enter blind
          blind=1;
    end
end



%%%%%%%%%%%%%%%%%%%%%%part e
% Part e consists of creating a BPSK signal and adding noise and passing it through a channel.
% Then we will demodulate using the Costas Loop from last lab and use our equalizer to acquire
% and track the signal to give us our output bits. To do this, we created a modulation function and
% a demodulation function. The modulation function takes in an array and multiplies it with a
% carrier. In addition, we also added noise at this stage as well. This function was called via the
% main equalizer code as:
xmt_bpsk=mod(bpsk);


% The demodulation function is called in a similar fashion and performs carrier recovery using a
% Costas Loop. The function takes in the modulated signal with channel corruption and removes
% the carrier. The resulting signal is fed into the acquisition and tracking algorithms to make
% decisions on the bits as in part d.


% chan_output=demod(chan_out_loss);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产高清不卡一区二区| 中文字幕欧美区| 久久老女人爱爱| 国产精品的网站| 午夜欧美在线一二页| 国产乱码字幕精品高清av| 成人av在线资源网| 欧美二区在线观看| 国产欧美一区二区三区网站| 亚洲一区二区在线视频| 久久99日本精品| 91浏览器在线视频| 精品99999| 亚洲黄色小视频| 国产一区91精品张津瑜| 色婷婷综合久久久中文一区二区| 日韩亚洲欧美高清| 综合电影一区二区三区| 免费视频一区二区| 97超碰欧美中文字幕| 精品久久久久久无| 亚洲综合色噜噜狠狠| 国产麻豆日韩欧美久久| 欧美日韩一区二区三区四区| 久久久久久久av麻豆果冻| 亚洲一区二区美女| 风间由美一区二区av101 | 亚洲手机成人高清视频| 免费在线成人网| 日本韩国欧美国产| 亚洲国产激情av| 麻豆国产精品一区二区三区 | 玉足女爽爽91| 国产成人精品亚洲午夜麻豆| 在线播放日韩导航| 国产精品一区二区无线| 欧美性受xxxx| 中文字幕一区二区5566日韩| 激情六月婷婷综合| 欧美精品丝袜久久久中文字幕| 国产精品卡一卡二卡三| 国产美女精品在线| 51精品秘密在线观看| 亚洲免费视频中文字幕| 国产69精品久久777的优势| 日韩欧美国产小视频| 亚洲成人动漫一区| 色婷婷综合久久久久中文一区二区| 国产视频亚洲色图| 看电影不卡的网站| 69p69国产精品| 亚洲线精品一区二区三区| 91免费视频网| 中文字幕一区在线观看视频| 国产成人精品免费| 国产色产综合产在线视频| 日本不卡视频在线观看| 欧美日产国产精品| 亚洲国产精品一区二区久久恐怖片 | 国产一区二区三区在线观看免费视频| 这里是久久伊人| 亚洲电影在线播放| 欧美亚洲愉拍一区二区| 悠悠色在线精品| 日本精品视频一区二区| 亚洲男人电影天堂| 91视视频在线直接观看在线看网页在线看 | 婷婷一区二区三区| 欧美日韩午夜影院| 午夜电影一区二区| 亚洲欧美日韩综合aⅴ视频| 国产二区国产一区在线观看| 久久一区二区视频| 国产一区二区三区在线看麻豆| 精品第一国产综合精品aⅴ| 激情欧美日韩一区二区| 久久久久久久性| 国产91在线|亚洲| 国产精品久久久久久久午夜片| 99久久精品一区二区| 亚洲欧美韩国综合色| 色视频成人在线观看免| 亚洲成av人片在www色猫咪| 欧美裸体bbwbbwbbw| 青青国产91久久久久久| 欧美一区二区三区四区久久| 麻豆一区二区三| 久久嫩草精品久久久精品| 成人美女视频在线观看| 亚洲欧美色综合| 欧美日韩欧美一区二区| 麻豆成人免费电影| 久久精品夜色噜噜亚洲aⅴ| 成人激情开心网| 亚洲伦理在线免费看| 欧美日韩国产乱码电影| 蜜臀久久99精品久久久久宅男| 精品播放一区二区| www.亚洲精品| 亚洲国产精品久久人人爱 | 狠狠色综合色综合网络| 国产欧美日韩激情| 日本精品视频一区二区| 日韩不卡在线观看日韩不卡视频| 2020国产精品自拍| 99久久久精品| 日韩国产在线一| 国产亲近乱来精品视频| 色综合久久久网| 秋霞午夜av一区二区三区| 久久这里只有精品首页| 91色porny| 男女男精品视频| 久久精品国产99| 国产日韩亚洲欧美综合| 在线看国产一区二区| 麻豆成人久久精品二区三区小说| 中文字幕电影一区| 欧美精品一二三| 大胆欧美人体老妇| 舔着乳尖日韩一区| 中文字幕av一区二区三区高| 欧美日韩一区二区三区在线看| 国产精品一区二区你懂的| 亚洲一区二区四区蜜桃| 久久久美女毛片| 欧美日韩免费一区二区三区 | 国产网站一区二区三区| 欧美少妇xxx| 国产不卡免费视频| 视频一区视频二区中文| 国产精品伦理一区二区| 91精品国产欧美一区二区成人| 不卡av电影在线播放| 日本成人超碰在线观看| 中文字幕一区日韩精品欧美| 日韩欧美国产系列| 色久综合一二码| 国产黄色精品视频| 日本一道高清亚洲日美韩| 亚洲美女免费在线| 国产网站一区二区三区| 欧美一区中文字幕| 色欧美乱欧美15图片| 国产成人日日夜夜| 蜜桃视频一区二区三区在线观看| 伊人色综合久久天天人手人婷| 久久精品男人天堂av| 欧美一区二区日韩| 欧美视频你懂的| 91天堂素人约啪| 成人动漫av在线| 国产麻豆成人传媒免费观看| 日本三级韩国三级欧美三级| 亚洲综合色在线| 亚洲色欲色欲www在线观看| 国产亚洲一区二区三区| 日韩欧美国产综合| 欧美精品在线一区二区| 欧美在线三级电影| 亚洲国产成人私人影院tom| 精品乱码亚洲一区二区不卡| 欧美精品自拍偷拍| 欧美影院精品一区| 91成人在线精品| 97se亚洲国产综合自在线不卡 | 亚洲人成网站色在线观看| 欧美极品美女视频| 国产三级一区二区三区| 久久这里只有精品视频网| 精品久久久久久久一区二区蜜臀| 91精品国产丝袜白色高跟鞋| 欧美日韩国产不卡| 欧美日韩午夜在线视频| 欧美日韩免费观看一区三区| 欧美在线观看视频一区二区| 色欧美88888久久久久久影院| 91丨porny丨户外露出| 99国产精品国产精品毛片| 成人av一区二区三区| 99久久精品免费| 99久久久久久99| 91在线精品一区二区| 91亚洲资源网| 91国产丝袜在线播放| 91激情在线视频| 日本精品一区二区三区高清 | 亚洲精品中文字幕乱码三区| 亚洲日本一区二区三区| 最新中文字幕一区二区三区| 亚洲欧美日韩成人高清在线一区| 亚洲精品免费在线观看| 亚洲一区二区三区自拍| 五月婷婷久久综合| 美女精品一区二区| 国产一区二区三区蝌蚪| 高清不卡一区二区在线| 91原创在线视频| 在线观看免费亚洲| 91.麻豆视频|