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

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

?? receive_for_channel3.m

?? 完整的空時碼鏈路仿真多發射天線多接收天線空時分集系統的具體代碼實現和誤碼性能評估
?? M
字號:
function [nr_of_errors_in_rate, nr_of_errors_in_rate1, nr_of_errors_in_rate2, theta1, theta2, alpha1, alpha2, sample_nr, indata_est,training1_est,training2_est,i_symbols, q_symbols]=receive_for_channel3(received_vector1,received_vector2,training_sequence1,training_sequence2,data_block,fs,T,fc,pulsetype)%   [output1, output2]=functionname(input1, input2)%%	Variable:	Explanation:%	nr_of_errors_in_rate    -   Percent of bits with error%   theta1                  -   the angle estimated by used channel-estimator%   %	received_vector     -   received vector from channel (1x1 experiment)%   training_sequence1  -   used training sequence%   data_block          -   true data-block sent over channel%   fs                  -   used sample-frequency%   T                   -   symbol-time   %   fc                  -   carrier-frequency%   pulsetype           -   used pulsetype, 2 for root-raised-cosine%%   Short Theoretical Background for the Function:%%   Receiving in two antennas!%   Assuming received_vector is normalized and correct size. Two transmitters used!%   Used when doing experiment over real acoustic channel the 27th.%   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%% Function part of simulation for Space-Time%%% coding project, group Grey-2001.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   Author: Stefan Uppg錼d%   Date: 27/3-2001%   Version: 1.0%   Revision (Name & Date & Comment):%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%        model = 1;    training_length1 = length(training_sequence1);    training_length2 = length(training_sequence2);    %%% Alamouti coding performed on training-sequence???    [training_sequence1, s_antenna2]=alamouti(training_sequence1,1);    [s_antenna1, training_sequence2]=alamouti(training_sequence2,1);        
    receive1 = received_vector1;    receive2 = received_vector2;        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%    %%% Receiving in receive-antenna 1.    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%            %%%    %%% Make the signal unbiased, removing the signals mean.    %%%        [receive1]=remove_mean(receive1);        %%%    %%% Down-conversion and lowpassfiltering.    %%%        [quad, inphase]=down_converter(receive1,fc,fs,T,(fc/(fs/2)),20);  % Function call for low_pass() /T Grey        figure(2), subplot(2,2,1), plot(1:length(quad),quad);    title('Quad after down-conv.');    subplot(2,2,2), plot(1:length(inphase),inphase);    title('Inphase after down-conv.');             %%%%%%%%    %%%%%%%% Do the frequency-offset compensation if initial-state.    %%%%%%%%        run_offset = 1;    if (run_offset == 0)        [freq_diff, delta_theta, alfa]=freq_offset(inphase, quad, fs, fc)    end        %freq_diff = 0.0237;    %delta_theta = 2*pi*(((1/(1-freq_diff/fc))-1)*fc*(1/(fs*(1-(freq_diff/fc)))));    %delta_theta = 9.3490*10^-6;       % estimated angle-shift/sampel for sinus sampled at 16 kHz.    delta_theta = -2.00000*10^-5;       % estimated angle-shift/sampel for sinus sampled at 8 kHz 2500 carrier freq.        a = 0:(length(inphase)-1);    rotation_vector = exp(-j*a*delta_theta);                               % Rotation compensating vector.         compensated_received = complex(inphase,quad) .* rotation_vector;    inphase = real(compensated_received);    quad    = imag(compensated_received);                %%%    %%% Matchedfiltering and lowpassfiltering.    %%%        [mf_quad_block]=matched_filter(fs, T, pulsetype, quad);    % Quadrature-part    [mf_inphase_block]=matched_filter(fs, T, pulsetype, inphase);    % Inphase-part        subplot(2,2,3), plot(1:length(mf_quad_block),mf_quad_block);    title('Quad after MF');    subplot(2,2,4), plot(1:length(mf_inphase_block),mf_inphase_block);    title('Inphase after MF');            %%%    %%% Performing synchronization    %%%        %[corr_maxi,sample_nri]=synchronization_long(mf_inphase_block, fs, T, training_sequence1, model)  %%% CALLING THE SYNC_LONG FUNCTION!    %[corr_maxq,sample_nrq]=synchronization_longb(mf_quad_block, fs, T, training_sequence1, model)        [corr_maxi,sample_nri,sum_of_r_times_c1i,sum_of_r_times_d2i]=synchronization2(mf_inphase_block, fs, T, training_sequence1, training_sequence2, model);    [corr_maxq,sample_nrq,sum_of_r_times_c1q,sum_of_r_times_d2q]=synchronization2(mf_quad_block, fs, T, training_sequence1, training_sequence2, model);    max_i1 = max(sum_of_r_times_c1i)    max_i2 = max(sum_of_r_times_d2i)    max_q1 = max(sum_of_r_times_c1q)    max_q2 = max(sum_of_r_times_d2q)    corr_maxi    sample_nri    corr_maxq    sample_nrq            if corr_maxq > corr_maxi       % choose the correlation with the biggest max value        sample_nr = sample_nrq;    else        sample_nr = sample_nri;    end            %%%    %%% Down-Sampling    %%%        block_length=length(data_block) + length(training_sequence1) + length(training_sequence2);    [inphase_symbols]=down_sampler(mf_inphase_block,sample_nr,fs,T,block_length);    [quad_symbols]=down_sampler(mf_quad_block,sample_nr,fs,T,block_length);        figure(3), subplot(1,2,2), plot(mf_inphase_block), hold on    for(i=0:block_length-1)        plot(i*(fs*T)+sample_nr,inphase_symbols(i+1),'o');    end    hold off    title('received data and samplepoints. (not yet combined!)');    subplot(1,2,1), stem([training_sequence1 data_block]), title('Sent data.');        figure(4), subplot(1,2,1), plot(inphase_symbols,quad_symbols,'x'), axis([-2 2 -2 2]), title('Signals after MF and sampled')        %%    %% Calculating influence of freq_offset. IS INSTEAD DONE AFTER DOWNCONVERTER.    %%        %[quad_symbols, inphase_symbols, theta]=freq_offset_compensate(quad_symbols,inphase_symbols);    %theta    %figure(7), plot(inphase_symbols,quad_symbols,'x'), axis([-6 6 -6 6]), title('Signals after freq-offset compensation.'), grid on
	    %%%    %%% Estimating Channel 1 and 2.    %%%
           %[alpha1,theta1]=chan_estim7(quad_symbols(1:training_length1),inphase_symbols(1:training_length1),bpsk(training_sequence1,1),1,0.95);        [alpha1,theta1] = channel_estimatorb(quad_symbols(1:training_length1), ...       inphase_symbols(1:training_length1), training_sequence1, model, 1)        if model == 1
       %[alpha2,theta2]=chan_estim5(quad_symbols(training_length1+1:training_length1+ ...       %training_length2),inphase_symbols(training_length1+1:training_length1+ ...       %training_length2), bpsk(training_sequence2,model))       %[alpha2,theta2]=chan_estim7(quad_symbols(training_length1+1:training_length1+training_length2),...       %    inphase_symbols(training_length1+1:training_length1+training_length2),bpsk(training_sequence1,1),1,0.95);               [alpha2,theta2] = channel_estimatorb(quad_symbols(training_length1+1:training_length1+ ...
       training_length2), inphase_symbols(training_length1+1:training_length1+ ...
       training_length2), training_sequence2, model, 2)    elseif model == 0        alpha2 = 1;        theta2 = 0;    end        q_symbols = quad_symbols;    i_symbols = inphase_symbols;        % set true values instead:    %alpha1 = 1;    %theta1 = 0;    %alpha2 = 1;    %theta2 = 0;    
     %%%
     %%% No combiner used since only 1 antenna is used to send from so far.
     %%%
     
     [combined_signal]=combiner(alpha1(end), theta1(end), alpha2(end), theta2(end), ...
        inphase_symbols, quad_symbols, model);
    figure(4), subplot(1,2,2), plot(combined_signal,'x'), axis([-6 6 -6 6]), title('Signals after combiner, just before detector.')    grid on    
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%    %%% Receiving in receive-antenna 2.    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%            %%%    %%% Make the signal unbiased, removing the signals mean.    %%%        [receive2]=remove_mean(receive2);        %%%    %%% Down-conversion and lowpassfiltering.    %%%        [quad2, inphase2]=down_converter(receive2,fc,fs,T,(fc/(fs/2)),20);        figure(2), subplot(2,2,1), plot(1:length(quad2),quad2);    title('Quad2 after down-conv.');    subplot(2,2,2), plot(1:length(inphase2),inphase2);    title('Inphase2 after down-conv.');             %%%%%%%%    %%%%%%%% Do the frequency-offset compensation if initial-state.    %%%%%%%%        run_offset = 1;    if (run_offset == 0)        [freq_diff2, delta_theta2, alfa2]=freq_offset(inphase2, quad2, fs, fc)    end        %freq_diff2 = 0.0237;    %delta_theta2 = 2*pi*(((1/(1-freq_diff/fc))-1)*fc*(1/(fs*(1-(freq_diff/fc)))));    %delta_theta2 = 9.3490*10^-6;       % estimated angle-shift/sampel for sinus sampled at 16 kHz.    delta_theta2 = -2.00000*10^-5;       % estimated angle-shift/sampel for sinus sampled at 8 kHz 2500 carrier freq.        a = 0:(length(inphase2)-1);    rotation_vector2 = exp(-j*a*delta_theta2);                               % Rotation compensating vector.         compensated_received2 = complex(inphase2,quad2) .* rotation_vector2;    inphase = real(compensated_received2);    quad    = imag(compensated_received2);        %%%    %%% Matchedfiltering and lowpassfiltering.    %%%        [mf_quad_block2]=matched_filter(fs, T, pulsetype, quad2);    % Quadrature-part    [mf_inphase_block2]=matched_filter(fs, T, pulsetype, inphase2);    % Inphase-part        subplot(2,2,3), plot(1:length(mf_quad_block2),mf_quad_block2);    title('Quad after MF');    subplot(2,2,4), plot(1:length(mf_inphase_block2),mf_inphase_block2);    title('Inphase after MF');            %%%    %%% Performing synchronization    %%%                [corr_maxi2,sample_nri2,sum_of_r_times_c1i2,sum_of_r_times_d2i2]=synchronization2(mf_inphase_block2, fs, T, training_sequence1, training_sequence2, model);    [corr_maxq2,sample_nrq2,sum_of_r_times_c1q2,sum_of_r_times_d2q2]=synchronization2(mf_quad_block2, fs, T, training_sequence1, training_sequence2, model);    max_i12 = max(sum_of_r_times_c1i2)    max_i22 = max(sum_of_r_times_d2i2)    max_q12 = max(sum_of_r_times_c1q2)    max_q22 = max(sum_of_r_times_d2q2)    corr_maxi2    sample_nri2    corr_maxq2    sample_nrq2            if corr_maxq2 > corr_maxi2       % choose the correlation with the biggest max value        sample_nr2 = sample_nrq2;    else        sample_nr2 = sample_nri2;    end            %%%    %%% Down-Sampling    %%%        block_length=length(data_block) + length(training_sequence1) + length(training_sequence2);    [inphase_symbols2]=down_sampler(mf_inphase_block2,sample_nr2,fs,T,block_length);    [quad_symbols2]=down_sampler(mf_quad_block2,sample_nr2,fs,T,block_length);        figure(3), subplot(1,2,2), plot(mf_inphase_block2), hold on    for(i=0:block_length-1)        plot(i*(fs*T)+sample_nr,inphase_symbols2(i+1),'o');    end    hold off    title('received data and samplepoints. (not yet combined!)');    subplot(1,2,1), stem([training_sequence1 data_block]), title('Sent data.');        figure(4), subplot(1,2,1), plot(inphase_symbols2,quad_symbols2,'x'), axis([-2 2 -2 2]), title('Signals after MF and sampled')        %%    %% Calculating influence of freq_offset. IS INSTEAD DONE AFTER DOWNCONVERTER.    %%        %[quad_symbols2, inphase_symbols2, theta2]=freq_offset_compensate(quad_symbols2,inphase_symbols2);    %theta2    %figure(7), plot(inphase_symbols2,quad_symbols2,'x'), axis([-6 6 -6 6]), title('Signals after freq-offset compensation.'), grid on
	    %%%    %%% Estimating Channel 3 and 4.    %%%
               %[alpha3,theta3]=chan_estim7(quad_symbols2(1:training_length1),inphase_symbols2(1:training_length1),bpsk(training_sequence1,1),1,0.95);        [alpha3,theta3] = channel_estimatorb(quad_symbols2(1:training_length1), ...       inphase_symbols2(1:training_length1), training_sequence1, model, 1)        if model == 1
       %[alpha4,theta4]=chan_estim5(quad_symbols2(training_length1+1:training_length1+ ...       %training_length2),inphase_symbols2(training_length1+1:training_length1+ ...       %training_length2), bpsk(training_sequence2,model))       %[alpha4,theta4]=chan_estim7(quad_symbols2(training_length1+1:training_length1+training_length2),...       %    inphase_symbols2(training_length1+1:training_length1+training_length2),bpsk(training_sequence1,1),1,0.95);               [alpha4,theta4] = channel_estimatorb(quad_symbols2(training_length1+1:training_length1+ ...
       training_length2), inphase_symbols2(training_length1+1:training_length1+ ...
       training_length2), training_sequence2, model, 2)    elseif model == 0        alpha4 = 1;        theta4 = 0;    end        q_symbols2 = quad_symbols2;    i_symbols2 = inphase_symbols2;        % set true values instead:    %alpha3 = 1;    %theta3 = 0;    %alpha4 = 1;    %theta4 = 0;    
     %%%
     %%% No combiner used since only 1 antenna is used to send from so far.
     %%%
     
     [combined_signal2]=combiner(alpha3(end), theta3(end), alpha4(end), theta4(end), ...
        inphase_symbols2, quad_symbols2, model);
    figure(4), subplot(1,2,2), plot(combined_signal,'x'), axis([-6 6 -6 6]), title('Signals after combiner, just before detector.')    grid on        inphase_symbols1 = real(combined_signal);    inphase_symbols2 = real(combined_signal2);    inphase_symbols = inphase_symbols1 + inphase_symbols2;        figure(5), subplot(1,3,1), plot(inphase_symbols1(training_length1+training_length2:end),'x'), subplot(1,3,2), plot(inphase_symbols2(training_length1+training_length2:end),'x'), subplot(1,3,3), plot(inphase_symbols(training_length1+training_length2:end),'x')        %%%
    %%% Detector
    %%%
    [indata_est1,training1_est,training2_est]=detector(inphase_symbols1,training_length1,training_length2,model);    [indata_est2,training1_est,training2_est]=detector(inphase_symbols2,training_length1,training_length2,model);
            [indata_est,training1_est,training2_est]=detector(inphase_symbols,training_length1,training_length2,model);    disp('Received data is:')
    indata_est;
    disp('Sent data is:')    data_block;    nr_of_errors1 = sum(abs(data_block-indata_est1))    nr_of_errors_in_rate1 = nr_of_errors1/length(data_block)    nr_of_errors2 = sum(abs(data_block-indata_est2))    nr_of_errors_in_rate2 = nr_of_errors2/length(data_block)            nr_of_errors = sum(abs(data_block-indata_est))    nr_of_errors_in_rate = nr_of_errors/length(data_block)    

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧洲精品一区二区| 国模无码大尺度一区二区三区| 国产成人精品亚洲777人妖| 欧美大片在线观看一区二区| 激情综合色播激情啊| 精品久久久久久最新网址| 精品一区二区影视| 337p粉嫩大胆色噜噜噜噜亚洲 | 日韩免费电影网站| 日本少妇一区二区| 久久综合九色综合97婷婷 | 国产成人8x视频一区二区| 精品99999| 成人av在线影院| 亚洲精品少妇30p| 欧美日本韩国一区二区三区视频| 青青草精品视频| 国产亚洲成av人在线观看导航| 99久久精品国产导航| 一区二区三区欧美视频| 欧美一区二区三区四区高清| 国产一区二区三区免费播放| 亚洲精品国产高清久久伦理二区| 欧美久久一二区| 精品一区二区三区久久| 成人免费在线播放视频| 在线电影国产精品| 国产精品香蕉一区二区三区| 亚洲一区在线免费观看| 日韩欧美区一区二| av中文字幕一区| 日韩精品一二三四| 国产三级三级三级精品8ⅰ区| 色噜噜狠狠成人中文综合| 美女一区二区三区| 亚洲天堂成人在线观看| 日韩欧美亚洲另类制服综合在线| 99久久免费国产| 麻豆精品国产91久久久久久 | 亚洲一区精品在线| 久久久天堂av| 欧美一级免费观看| 91在线高清观看| 免费高清视频精品| 一区二区免费视频| 国产亚洲成年网址在线观看| 欧美一三区三区四区免费在线看| 成人午夜电影小说| 久久99国产精品尤物| 亚洲午夜激情网站| 中文字幕一区二区三区蜜月| 日韩精品最新网址| 欧洲一区二区三区在线| 成人动漫av在线| 黄色成人免费在线| 视频一区免费在线观看| 亚洲自拍偷拍综合| 国产精品国产自产拍高清av | 国产精品电影一区二区| 日韩免费性生活视频播放| 色999日韩国产欧美一区二区| 成人三级在线视频| 精品在线播放免费| 三级精品在线观看| 亚洲综合久久av| 一区二区三区视频在线观看| 国产精品国产自产拍高清av| 日本一区免费视频| 久久久亚洲欧洲日产国码αv| 91麻豆精品国产无毒不卡在线观看| 色婷婷综合久久久久中文| 国产成人欧美日韩在线电影| 日韩不卡在线观看日韩不卡视频| 午夜精品一区二区三区免费视频| 亚洲伊人伊色伊影伊综合网| 亚洲欧美日韩在线不卡| 国产精品久久久久久久久免费丝袜| 欧美国产日韩在线观看| 国产三级精品在线| 久久精品一区蜜桃臀影院| 欧美精品一区二区三区蜜臀| 精品日产卡一卡二卡麻豆| 欧美一卡二卡三卡| 欧美刺激午夜性久久久久久久| 日韩一区二区电影在线| 精品美女在线播放| 欧美国产精品v| **欧美大码日韩| 亚洲欧美一区二区三区极速播放| 一区二区三区四区亚洲| 亚洲成人免费看| 蜜桃一区二区三区四区| 精品一区二区三区免费播放| 国产一区二区精品久久| 成人免费黄色大片| 96av麻豆蜜桃一区二区| 欧美综合天天夜夜久久| 欧美精品精品一区| 久久久久久久久伊人| 一区视频在线播放| 亚洲午夜一区二区三区| 日韩av在线发布| 国产精品一卡二卡在线观看| 成人av电影免费观看| 色八戒一区二区三区| 91麻豆精品国产综合久久久久久| 26uuu国产日韩综合| 综合在线观看色| 五月婷婷久久丁香| 国精品**一区二区三区在线蜜桃| 成人精品电影在线观看| 在线免费观看成人短视频| 日韩欧美一区二区免费| 国产精品三级电影| 午夜精品视频在线观看| 国产一区二区三区综合| 色婷婷av一区二区| 日韩视频123| 18欧美乱大交hd1984| 天堂在线一区二区| 懂色av一区二区夜夜嗨| 精品视频一区 二区 三区| 久久精品欧美一区二区三区麻豆| 亚洲黄色在线视频| 久久精品99国产精品日本| 99精品视频在线观看免费| 91精品国产91热久久久做人人| 亚洲国产精品v| 日本中文字幕不卡| 99久久99久久免费精品蜜臀| 日韩午夜在线播放| 一区二区三区中文字幕在线观看| 国产一区二区电影| 91精品国产综合久久精品性色| 中文字幕欧美一| 国产精品18久久久久久vr| 欧美日韩一本到| 亚洲乱码中文字幕| 国产精品一二三区| 日韩一级完整毛片| 亚洲色欲色欲www在线观看| 国产精品资源在线看| 91麻豆精品国产无毒不卡在线观看| 亚洲欧美日韩一区二区三区在线观看| 国模娜娜一区二区三区| 日韩欧美国产成人一区二区| 亚洲网友自拍偷拍| 99精品国产91久久久久久| 久久久久久久久97黄色工厂| 奇米色777欧美一区二区| 91福利资源站| 亚洲日本在线观看| 国产成人精品亚洲日本在线桃色| 欧美成人aa大片| 日韩成人免费电影| 欧美日韩你懂的| 亚洲精品乱码久久久久久| 成人永久免费视频| 久久久一区二区三区| 韩国av一区二区三区在线观看| 91精品国产一区二区人妖| 亚洲综合视频在线观看| 91国产丝袜在线播放| 一区二区在线观看视频| 91麻豆文化传媒在线观看| 亚洲精品国久久99热| 91久久精品网| 一区二区三区精密机械公司| 91蜜桃网址入口| 亚洲精品视频一区| 在线观看一区日韩| 亚洲综合成人在线视频| 欧美日韩国产小视频在线观看| 亚洲国产日韩精品| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 欧美精品一级二级三级| 亚洲国产va精品久久久不卡综合 | 91.xcao| 亚洲一区二区三区四区在线观看| 91福利精品第一导航| 亚洲国产日日夜夜| 日韩亚洲欧美在线| 黄色小说综合网站| 中文字幕免费不卡| 92精品国产成人观看免费| 亚洲电影一区二区| 日韩一区二区在线播放| 经典一区二区三区| 中文一区二区完整视频在线观看| 91美女视频网站| 日本va欧美va精品发布| 欧美精品一区二区三区蜜桃 | 久99久精品视频免费观看| 久久久久久久电影| 97se亚洲国产综合自在线不卡| 亚洲一区二区三区中文字幕| 91精品国产麻豆国产自产在线| 久久99在线观看| 国产精品久久毛片av大全日韩| 91成人免费电影|