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

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

?? cdma_simulator.asv

?? MATKAB實現(xiàn)CDMA System 仿真
?? ASV
字號:
clc
%% ###################### Primary Parameters ##########################

Samples=2^15;               % Total number of samples to be handled
ord_but = 3;
considerBeta = 0;

%% ##################### Secondary Parameters #########################
rate=SamplePerChip*cps;             % Sampling Rate = Fs (Samples/Sec.)
Tc = inv(cps);                      % Time Period of Chip(Sec)
Tb = TotalChips*Tc;                 % Time Period of Data Bit (Sec)
SamplePerBit = Tb*rate;
Br = inv(Tb);                       % Bit Rate (per Sec)
cutoff=0.75*cps;                    % cutoff frequency of LPF

TotalTime=(Samples-1)/rate;         % Total time length of simulation(sec)
Fsa=rate/Samples;
t=0:inv(rate):TotalTime;t=t';       % Time matrix of each sample
f=rate/2 - (Samples:-1:1)*Fsa;f=f'; % Frequency matrix of each sample

% #################### CDMA Coding Starts Here ########################
isexists = isequal(ismember({'DataBit','Chipbit','Signal','OutSignal'},...
    who),[1 1 1 1]);
if (isexists==0 || RegenerateData == 1)
    [DataBit,Chipbit,Signal,OutSignal] = CDMA_Encode(TotalChips, ...
        TotalUser,TotalDataBit); 
                                % This Generates a New Set of Data & Chip
end
                               

DataBit_sampled = MakeSampled(DataBit,Samples,SamplePerBit);
                                                                % Plot - 1
Signal_sampled = MakeSampled(Signal,Samples,SamplePerChip);
                                                                % Plot - 2
OutSignal_sampled = inpt_vol*MakeSampled(OutSignal,Samples,SamplePerChip);
                                                             % Plot - 3

%% ###################### Outsignal Passing Through Coax #################

if (PassThroughCoax==0),
    Processed_OutSignal_sampled = OutSignal_sampled;
else
    Processed_OutSignal_sampled = coax_simulator(Samples,rate,t,f, ...
        OutSignal_sampled,Zr,L,b,a,Ur,Er,cond,var_coax,T0,cutoff, ...
        ord_but,considerBeta);                        % Plot -4
end

% ##################### CDMA Decoding Starts Here ########################
[Decoded,Decoder_Chip_sampled,Temp_Decoded_sampled,Ingl] = CDMA_decode( ...
  Processed_OutSignal_sampled,Chipbit,User_to_Decode,SamplePerBit,...
  SamplePerChip,TotalDataBit);

Decoded_sampled = MakeSampled(Decoded,Samples,SamplePerBit);  % Plot - 5

% ############################### Result ################################
if (isequal(Decoded,DataBit(:,User_to_Decode))==1)
    disp('Data Successfully Recovered');
else
    disp('Error Detected in Data');    
end

% ########################### ESD Calculation ############################
fft_databit = fftshift(fft(DataBit_sampled(:,User_to_Decode)));
ESD_databit = fft_databit .* conj(fft_databit);

fft_chipbit = fftshift(fft(Decoder_Chip_sampled));
ESD_chipbit = fft_chipbit .* conj(fft_chipbit);

fft_signal = fftshift(fft(Signal_sampled(:,User_to_Decode)));
ESD_signal = fft_signal .* conj(fft_signal);

fft_OutSignal = fftshift(fft(OutSignal_sampled));
ESD_OutSignal = fft_OutSignal .* conj(fft_OutSignal);

fft_Processed_OutSignal = fftshift(fft(Processed_OutSignal_sampled));
ESD_Processed_OutSignal = fft_Processed_OutSignal .* ...
    conj(fft_Processed_OutSignal);

fft_Temp_Decoded = fftshift(fft(Temp_Decoded_sampled));
ESD_Temp_Decoded = fft_Temp_Decoded .* conj(fft_Temp_Decoded);

fft_Decoded_sampled = fftshift(fft(Decoded_sampled));
ESD_Decoded_sampled = fft_Decoded_sampled .* conj(fft_Decoded_sampled);

% ########################## Plotting the Output  ########################
clipto = TotalDataBit*SamplePerBit;
scrsz = get(0,'ScreenSize');
if (plot_In==1),        % plot_in = 1 < Time x axis; plot_in = 0 <  Sample x axis 
    if (Graphs_2_plot(1)==1),
    Fighand = figure();
    set(Fighand,'Name','Time Domain Representation:Encoding Process', ...
        'NumberTitle','off','Position',[1 1 scrsz(3) (scrsz(4)/1.1)])
    subplot(411),
    plot(t(1:clipto),DataBit_sampled(1:clipto,User_to_Decode),'r')
    axis [min(t(1:clipto)),max(t(1:clipto)),min(DataBit_sampled(1:clipto,User_to_Decode))-0.2 ...
        max(DataBit_sampled(1:clipto,User_to_Decode))+0.2]
    xlabel(sprintf('Time(Sec.)(%d sec per bit)',Tb))
    ylabel('Signal Voltage (Volt)')
    title (sprintf('Data bits of user %d',User_to_Decode))
    
    subplot(412),
    plot(t(1:clipto),Decoder_Chip_sampled(1:clipto),'b')
    axis [min(t(1:clipto)),max(t(1:clipto)),min(Decoder_Chip_sampled(1:clipto,User_to_Decode))-0.2 ...
        max(Decoder_Chip_sampled(1:clipto,User_to_Decode))+0.2]
    xlabel(sprintf('Time(Sec.)(%d sec per chip)',Tc))
    ylabel('Signal Voltage (Volt)')
    title (sprintf('Chip bits of user %d',User_to_Decode))
    
    subplot(413),
    plot(t(1:clipto),Signal_sampled(1:clipto,User_to_Decode),'b')
    axis [min(t(1:clipto)),max(t(1:clipto)),min(Signal_sampled(1:clipto,User_to_Decode))-0.2 ...
        max(Signal_sampled(1:clipto,User_to_Decode))+0.2]
    xlabel('Time(Sec.)')
    ylabel('Signal Voltage (Volt)')
    title ('Multiplication of Data and Chip')    
    
    subplot(414),
    plot(t(1:clipto),OutSignal_sampled(1:clipto),'b')
    axis tight
    xlabel('Time(Sec.)')
    ylabel('Signal Voltage (Volt)')
    title (sprintf('Summation of Data-chip product for %d Users', ...
        TotalUser))
    end
    if (Graphs_2_plot(2)==1),
    Fighand = figure();
    set(Fighand,'Name','Time Domain Representation:Decoding Process', ...
        'NumberTitle','off','Position',[1 1 scrsz(3) (scrsz(4)/1.1)])
    subplot(411),
    plot(t(1:clipto),Processed_OutSignal_sampled(1:clipto),'b')
    axis tight
    xlabel('Time(Sec.)')
    ylabel('Signal Voltage (Volt)')
    title ('Summation of Data-chip product after passing through coax')
    
    subplot(412),
    plot(t(1:clipto),Decoder_Chip_sampled(1:clipto),'b')
    axis tight
    xlabel(sprintf('Time(Sec.)(%d sec per bit)',Tb))
    ylabel('Signal Voltage (Volt)')
    title (sprintf('Chip bits of user %d',User_to_Decode))
    
    subplot(413),
    hold on
    plot(t(1:clipto),Temp_Decoded_sampled(1:clipto),'b')
    hold off
    axis tight
    xlabel(sprintf('Time(Sec.)(%d sec per bit)',Tb))
    ylabel('Signal Voltage (Volt)')
    title (['Multiplication of Received Signal and Chip bits(blue)', ...
    ' Average in bit period(red)']);
    
    subplot(414),
    plot(t(1:clipto),Ingl)
    axis tight
    xlabel('Time(Sec.)')
    ylabel('Signal Voltage (Volt)')
    title ('Output of the integrator') 
    end
elseif (plot_In==0),
    if (Graphs_2_plot(1)==1),    
    Fighand = figure();
    set(Fighand,'Name','Time Domain Representation:Encoding Process', ...
        'NumberTitle','off','Position',[1 1 scrsz(3) (scrsz(4)/1.1)])
    subplot(411),
    hold on
    plot(DataBit_sampled(1:clipto,User_to_Decode),'r')
    scatter(1:clipto,DataBit_sampled(1:clipto,User_to_Decode),'r')    
    hold off
    axis tight
    xlabel(sprintf('Samples(%d Samples per bit)',Tb*rate))
    ylabel('Signal Voltage (Volt)')
    title (sprintf('Data bits of user %d',User_to_Decode))
    
    subplot(412),
    hold on
    plot(Decoder_Chip_sampled(1:clipto),'b')
    scatter(1:clipto,Decoder_Chip_sampled(1:clipto),'b')    
    hold off
    axis tight
    xlabel(sprintf('Samples(%d Samples per chip)',Tc*rate))
    ylabel('Signal Voltage (Volt)')
    title (sprintf('Chip bits of user %d',User_to_Decode))
    
    subplot(413),
    hold on
    plot(Signal_sampled(1:clipto,User_to_Decode),'b')
    scatter(1:clipto,Signal_sampled(1:clipto,User_to_Decode),'b')
    hold off
    axis tight
    xlabel('Samples')
    ylabel('Signal Voltage (Volt)')
    title ('Multiplication of Data and Chip')    
    
    subplot(414),
    hold on
    plot(OutSignal_sampled(1:clipto),'b')
    hold off
    axis tight
    xlabel('Samples')
    ylabel('Signal Voltage (Volt)')
    title (sprintf('Summation of Data-chip product for %d Users', ...
        TotalUser))
    end
    
    if (Graphs_2_plot(2)==1),    
    Fighand = figure();
    set(Fighand,'Name','Time Domain Representation','NumberTitle','off',...
        'Position',[1 1 scrsz(3) (scrsz(4)/1.1)])
    subplot(411),
    hold on
    plot(Processed_OutSignal_sampled(1:clipto),'b')
    hold off
    axis tight
    xlabel('Samples')
    ylabel('Signal Voltage (Volt)')
    title ('Summation of Data-chip product after passing through coax')
    
    subplot(412),
    hold on
    plot(Decoder_Chip_sampled(1:clipto),'b')
    scatter(1:clipto,Decoder_Chip_sampled(1:clipto),'b')    
    hold off
    axis tight
    xlabel(sprintf('Samples(%d samples per chip)',Tc*rate))
    ylabel('Signal Voltage (Volt)')
    title (sprintf('Chip bits of user %d',User_to_Decode))
    
    subplot(413),
    hold on
    plot(Temp_Decoded_sampled(1:clipto),'b')
    plot(1:clipto,Ingl(1:clipto),'r') 
    hold off
    axis tight
    xlabel(sprintf('Samples(%d samples per bit)',Tc*rate))
    ylabel('Signal Voltage (Volt)')
    title (['Multiplication of Received Signal and Chip bits(blue)', ...
        ' Average in bit period(red)']);
    
    subplot(414),
    hold on
    plot(t(1:clipto),Ingl)
    hold off
    axis tight
    xlabel('Samples')
    ylabel('Signal Voltage (Volt)')
    title ('Output of the integrator(Decoded Signal)')    
    end
end

if (Graphs_2_plot(3)==1),
Fighand = figure();
    set(Fighand,'Name','Frequency Domain Representation', ...
        'NumberTitle','off','Position',[1 1 scrsz(3) (scrsz(4)/1.1)])
    subplot(211)
    plot(f,ESD_databit,f,ESD_chipbit)
    axis tight
    xlabel('Frequency(Hz)')
    ylabel('FFT Value')
    legend('FFT of Data','FFT of Chipping Sequence')
    title('Frequency Domain representation of Data & Chip')
    
    subplot(212)
    plot(f,ESD_signal)
    axis tight
    xlabel('Frequency(Hz)')
    ylabel('FFT Value')
 title('Frequency Domain representation of Multiplication of Data & Chip')
end

if (Graphs_2_plot(4)==1),
    Fighand = figure();
    set(Fighand,'Name','Frequency Domain Representation', ...
        'NumberTitle','off','Position',[1 1 scrsz(3) (scrsz(4)/1.1)])
 
    subplot(311)
    plot(f,ESD_OutSignal)
    axis tight
    xlabel('Frequency(Hz)')
    ylabel('FFT Value')
 title('Frequency Domain of sum of product sequence')
 
    subplot(312)
    plot(f,ESD_Processed_OutSignal)
    axis tight
    xlabel('Frequency(Hz)')
    ylabel('FFT Value')
 title( ...
'Frequency Domain of sum of product sequence after passing through coax')

    subplot(313)
    plot(f,ESD_Decoded_sampled)
    axis tight
    xlabel('Frequency(Hz)')
    ylabel('FFT Value')
 title( ...
'Frequency Domain of Decoded Data')
end

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆精品在线看| 成人中文字幕合集| 亚洲精品水蜜桃| 一区二区三区在线观看国产| 国产精品美日韩| 国产精品久久久一本精品 | 精品午夜一区二区三区在线观看| 国产.欧美.日韩| 欧美性猛片aaaaaaa做受| 日韩区在线观看| 国产精品视频免费看| 国产精品888| 欧美性三三影院| 视频精品一区二区| 色综合色狠狠天天综合色| 日韩欧美的一区二区| 五月婷婷综合激情| 色欧美乱欧美15图片| 亚洲成人在线网站| 一本色道久久综合亚洲精品按摩| 亚洲色图视频免费播放| 精品一区二区三区的国产在线播放| 日韩三级在线免费观看| 成人激情视频网站| 国产欧美日韩久久| 国产成人精品综合在线观看| 欧美大片拔萝卜| 成人小视频免费观看| 亚洲免费观看视频| 国产乱子轮精品视频| 欧美成人aa大片| 蜜臀av一区二区在线观看| 久久久久亚洲综合| 高清不卡一区二区在线| 亚洲国产精品久久艾草纯爱| 9191精品国产综合久久久久久| 一区二区三区小说| 国产人成亚洲第一网站在线播放| 色综合久久中文字幕综合网| 处破女av一区二区| 激情久久五月天| 国产精品污www在线观看| 色综合天天综合网国产成人综合天 | 久久久久久久久一| 久久婷婷成人综合色| 久久精品99国产精品日本| 日韩精品一区二区三区视频播放| k8久久久一区二区三区| 亚洲精品视频在线观看网站| 国产女同互慰高潮91漫画| 日韩一二在线观看| 91精品国产丝袜白色高跟鞋| 国产福利一区二区三区视频 | 久久综合九色欧美综合狠狠| 欧美一区国产二区| 欧美色区777第一页| 国产成人av一区| www.av亚洲| 国产激情一区二区三区| 国产成人精品三级麻豆| 99re免费视频精品全部| 丝袜诱惑制服诱惑色一区在线观看 | 看电影不卡的网站| 美女精品一区二区| 国产黄色精品网站| 一本大道综合伊人精品热热 | av在线播放成人| 在线免费视频一区二区| 91丨porny丨户外露出| 成人午夜激情片| 欧美一区二区三区视频免费| 亚洲精品久久7777| 国产尤物一区二区在线| 91精品国产欧美一区二区| 亚洲激情校园春色| 国产高清久久久| 欧美一区二区三区免费在线看| 亚洲精品一区在线观看| 精品国产网站在线观看| 亚洲成a天堂v人片| 欧美日韩一区国产| 亚洲免费色视频| 国产成人在线视频免费播放| 91麻豆精品国产91久久久久| 久久久天堂av| 亚洲国产美国国产综合一区二区| 波多野结衣中文字幕一区二区三区| 久久―日本道色综合久久| 久久精品免费观看| 欧美一区二区三区在线| 国产精品久久久久影院老司| 国产高清精品久久久久| 久久久激情视频| 成人开心网精品视频| 国产精品麻豆一区二区| 成人精品鲁一区一区二区| 国产精品麻豆视频| 欧美色偷偷大香| 日本美女一区二区三区视频| 亚洲制服丝袜一区| 国产美女精品在线| 久久精品亚洲一区二区三区浴池| 亚洲亚洲精品在线观看| 欧美一区二区三区性视频| 日韩黄色在线观看| 久久久久久亚洲综合影院红桃| 国产在线视视频有精品| 日韩免费视频一区| 日韩福利电影在线| 欧美电影精品一区二区| 成人三级在线视频| 亚洲男人天堂av网| 日韩欧美国产精品| 91麻豆.com| 午夜精品一区二区三区三上悠亚| 欧美怡红院视频| 欧美aa在线视频| 视频一区二区中文字幕| 欧美色视频一区| 午夜久久久久久久久| 国产精品国模大尺度视频| 91精品国产色综合久久| 国产激情精品久久久第一区二区| 最新欧美精品一区二区三区| 另类人妖一区二区av| 一区二区三区精品| 一区二区三区欧美激情| 一区视频在线播放| 欧美国产日韩精品免费观看| 99久精品国产| 96av麻豆蜜桃一区二区| 91免费视频网| 在线看国产日韩| 欧美日韩日日夜夜| 日韩欧美国产1| 久久精品视频在线免费观看| 久久综合色播五月| 中文字幕在线不卡一区| 亚洲日本在线a| 麻豆成人久久精品二区三区红| 久久国产精品99精品国产 | 久久―日本道色综合久久| 中文字幕一区二区三区四区不卡| 成人理论电影网| 国产高清视频一区| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 国产九九视频一区二区三区| 亚洲福利国产精品| 麻豆精品视频在线观看视频| 三级久久三级久久久| 国产一区二区91| 高清国产一区二区三区| 在线精品视频一区二区三四 | 精品国产乱码久久久久久久久| 精品国产免费久久| 午夜电影网亚洲视频| 国产一区二区三区免费在线观看 | 日韩福利电影在线| 成人三级伦理片| 欧美精品v国产精品v日韩精品 | 粉嫩蜜臀av国产精品网站| 成人动漫视频在线| 日韩欧美激情一区| 国产精品另类一区| 国产伦精品一区二区三区免费迷 | 蜜臀av一级做a爰片久久| 久久精工是国产品牌吗| 欧美午夜一区二区| 一级女性全黄久久生活片免费| 国产九九视频一区二区三区| 国产福利一区二区三区视频| 久久久www免费人成精品| 一区二区三区四区视频精品免费 | 91一区二区在线| 久久这里只有精品首页| 综合自拍亚洲综合图不卡区| 国产精品主播直播| 精品欧美一区二区久久 | 久久国产精品99精品国产| 99久久国产免费看| 日本一区二区视频在线观看| 免费高清在线视频一区·| 2023国产精品| 在线视频国内一区二区| 美腿丝袜亚洲一区| 7777精品伊人久久久大香线蕉经典版下载| 精品一区二区三区久久久| 91黄视频在线| 久久久av毛片精品| 日韩高清电影一区| 亚洲三级在线免费观看| 久久久一区二区三区| 日韩三级在线观看| 欧美日韩一区三区四区| 91黄色在线观看| 99这里只有久久精品视频| 在线播放中文字幕一区| 日韩va欧美va亚洲va久久| 日本道精品一区二区三区| 欧美精品久久久久久久多人混战|