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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? receive_for_channel3.m

?? 用Matlab實(shí)現(xiàn)空時(shí)分組編碼對(duì)其MIMO系統(tǒng)性能進(jìn)行分析得出理想的結(jié)果
?? M
字號(hào):
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)    

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩视频免费直播| 国产一区在线观看视频| 色一情一乱一乱一91av| 亚洲国产经典视频| 99视频精品在线| 亚洲精品视频在线| 欧美亚洲动漫制服丝袜| 日韩av电影免费观看高清完整版| 欧美一区二区视频免费观看| 免费观看30秒视频久久| 久久久久久久国产精品影院| 成人黄色777网| 亚洲综合在线视频| 日韩午夜在线观看视频| 国产美女精品在线| 一区在线观看免费| 欧美另类一区二区三区| 国产在线国偷精品产拍免费yy| 国产日韩欧美精品在线| 一本久道中文字幕精品亚洲嫩| 亚洲妇女屁股眼交7| 欧美精品v国产精品v日韩精品| 黄色精品一二区| 亚洲乱码国产乱码精品精的特点| 欧美人妇做爰xxxⅹ性高电影| 日本aⅴ精品一区二区三区| 国产精品婷婷午夜在线观看| 在线观看国产日韩| 麻豆91免费观看| 亚洲人成在线观看一区二区| 69堂国产成人免费视频| 成人午夜私人影院| 亚洲电影激情视频网站| 国产日韩精品视频一区| 欧美日韩在线播| 成人免费福利片| 美女脱光内衣内裤视频久久网站| 久久久久亚洲蜜桃| 欧美性猛片xxxx免费看久爱| 国产一区二区h| 性做久久久久久免费观看| 欧美韩日一区二区三区| 欧美三级电影在线观看| av中文字幕亚洲| 国产自产高清不卡| 亚洲成人动漫在线免费观看| 中文字幕va一区二区三区| 日韩色在线观看| 欧美主播一区二区三区| 成人av网站免费观看| 麻豆国产精品视频| 日本在线播放一区二区三区| 亚洲天堂网中文字| 国产午夜精品理论片a级大结局| 欧美视频在线观看一区二区| 粉嫩av一区二区三区粉嫩| 久久 天天综合| 日韩精品电影在线| 亚洲最大色网站| 1024成人网色www| 国产精品久久久久久久久快鸭| 日韩欧美综合一区| 制服丝袜亚洲播放| 欧美日韩国产美| 欧美日韩在线播放| 欧美色图激情小说| 欧美日韩一级视频| 欧美三级韩国三级日本三斤 | 六月婷婷色综合| 亚洲黄色小说网站| 一区二区在线电影| 亚洲大片免费看| 亚洲一区二区三区影院| 亚洲精品国产a| 亚洲国产日韩一级| 亚洲第一二三四区| 天堂成人免费av电影一区| 亚洲五月六月丁香激情| 三级亚洲高清视频| 麻豆一区二区三| 国产主播一区二区| 国产精品18久久久久久久久久久久| 久久99这里只有精品| 韩国女主播一区二区三区| 美女在线观看视频一区二区| 日韩va亚洲va欧美va久久| 首页国产欧美久久| 美美哒免费高清在线观看视频一区二区 | 777午夜精品免费视频| 在线不卡一区二区| 欧美电影免费观看高清完整版在 | 欧美人成免费网站| 欧美一区二区三区免费| 精品国免费一区二区三区| 久久亚洲精品国产精品紫薇| 中文字幕av免费专区久久| 国产精品国产三级国产aⅴ入口| 一色桃子久久精品亚洲| 午夜影视日本亚洲欧洲精品| 六月丁香婷婷久久| 成人一道本在线| 在线欧美一区二区| 日韩视频国产视频| 欧美激情一区不卡| 亚洲午夜久久久久久久久久久 | 国产精品一区不卡| 99久久精品国产一区二区三区 | 日韩你懂的在线观看| 久久精品人人做人人爽人人| 中文字幕欧美一区| 日韩精品成人一区二区在线| 国产麻豆视频精品| 色素色在线综合| 欧美xxxx在线观看| 亚洲三级电影全部在线观看高清| 亚洲午夜久久久久久久久电影院| 精品在线免费视频| 91捆绑美女网站| 欧美精品一区二区三| 亚洲另类春色校园小说| 免费av成人在线| 91美女片黄在线观看| 欧美不卡激情三级在线观看| 亚洲日本在线天堂| 久久狠狠亚洲综合| 欧美在线短视频| 国产女人18水真多18精品一级做| 亚洲综合一区在线| 成人在线综合网| 欧美成人综合网站| 亚洲尤物视频在线| youjizz久久| 欧美成人精品福利| 亚洲午夜在线电影| 91视频.com| 国产视频一区二区三区在线观看| 午夜伊人狠狠久久| 日本韩国欧美一区二区三区| 久久精品人人爽人人爽| 天天色 色综合| 色婷婷综合久久久久中文一区二区 | 国产在线一区观看| 欧美人与性动xxxx| 亚洲综合激情网| 不卡av在线免费观看| 精品少妇一区二区三区免费观看 | 亚洲国产精华液网站w| 极品少妇xxxx偷拍精品少妇| 欧美日韩亚洲综合在线| 一区二区三区日韩欧美精品| 成人性生交大合| 欧美国产日韩a欧美在线观看| 蜜臀精品久久久久久蜜臀 | 亚洲精品国产成人久久av盗摄| 国产精品一区二区在线看| 欧美一区二区三区视频免费| 亚洲国产成人av网| 在线观看免费亚洲| 亚洲一二三四区| 在线观看成人免费视频| 亚洲精品视频在线观看网站| 91在线无精精品入口| 成人欧美一区二区三区白人| 成人动漫在线一区| 中文字幕制服丝袜一区二区三区| 国产精品99久久久久久有的能看| 欧美电视剧在线观看完整版| 老司机午夜精品99久久| 91精品国产欧美一区二区成人 | 自拍偷拍欧美精品| 91年精品国产| 一区二区三区蜜桃| 欧美三级电影在线观看| 日本三级亚洲精品| 欧美成人一区二区三区片免费| 久久精品国产在热久久| 久久综合狠狠综合久久综合88| 久久99久久久久久久久久久| 精品人伦一区二区色婷婷| 激情综合色丁香一区二区| 久久久国产精品麻豆| 成人一区二区三区视频| 亚洲欧美日韩久久精品| 欧美四级电影网| 日韩**一区毛片| 久久久美女艺术照精彩视频福利播放| 国产福利91精品| 综合分类小说区另类春色亚洲小说欧美 | 日本欧美一区二区| 久久九九影视网| 色综合久久88色综合天天6| 亚洲国产视频一区| 精品成人一区二区三区四区| 国产麻豆视频一区二区| 亚洲精品视频免费观看| 3d成人h动漫网站入口| 国产精品自拍三区| 亚洲激情综合网| 日韩一区二区三区四区| 懂色av一区二区夜夜嗨|