• 大小: 7.11MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-17
  • 语言: Matlab
  • 标签: matlab  

资源简介

MATLAB通信技术的全部例程(全)包括WCDMA、ofdm、mimo、各种调制技术、编码技术等

资源截图

代码片段和文件信息

%% 802.11b 1Mbps PHY link.
% This M code simulates DBPSK modulation and barker code spreading
% on a perfectly synchonized 802.11b link. It calculates the BER
% rate at each EsNo (EbNo) and plots the result.

%% Simulation parameters
% For each BER loop we specify the number of packets to transmit the packet size and
% the range of channel EsNo values to test.

EsNoRange=[0:2:10]; % Range of noice levels to calculate BER
NumPackets=2;
PacketSizeBytes=1024;
PacketSizeBits=PacketSizeBytes*8; % Here we ignore preamble and sync bits
clear BERResults;

%% System parameters and constants
% Specify a number of system constants.

% Spreading parameters
Barker=[1 -1  1  1 -1  1  1  1 -1 -1 -1]‘; % Barker sequence
SpreadingRate=length(Barker);              % Spreading rate

% Upsampling rate
SamplesPerChip=8;

% Filter order and coefficients - root raised cosine
FilterOrder=40; % Set to multiple of SamplesPerChip to make delay calculation easy
h=firrcos(FilterOrder7e6.788e6‘rolloff‘‘sqrt‘FilterOrder/2kaiser(FilterOrder+11));

%% Delay calculation
% Calclate (specify) the net number of bits delay in the link due
% to the filtering.
%
% * samples_delay = 2 filters x (40 coeffs / 2) = 40 samples
% * chips_delay = sample_delay/SamplesPerChip = 40/8 = 5 chips
% *  Must recalculate delay if you change any of these parameters
% We must delay the signal 6 more chips to align it with the 11 chip
% boundary. This results in an 11 chip delay or one symbol/bit delay.
% You must recalculate total and additional delay if you change any of these
% parameters

BitDelay=1;
ChipDelayAdd=6;

%% Main BER loop
% Calculates the BER for each EsNo level. 

NumEsNos=length(EsNoRange);

disp(‘ ‘);disp(‘Start Simulation‘);
for EsNoIndex =1:NumEsNos
    
    EsNo=EsNoRange(EsNoIndex);
    disp([‘Simulating: EsNo=‘ num2str(EsNo) ‘dB‘]);
    SNR=EsNo+10*log10(1/SpreadingRate)+10*log10(1/SamplesPerChip);

    % Initialize system and simulation measurements state

    % Bits
    TotalBits=logical(0); % Bit count for BER calculation
    ErrorBits=logical(0); % Error count for BER calculation
    LastTxSymbol=1;       % Set DBPKS Modulator state
    LastRxSymbol=1;       % Set DBPKS Demodulator state

    % Filters
    Rx_chips_delayed_store=zeros(ChipDelayAdd1);
    Tx_bits_delayed_store=logical(zeros(BitDelay1));

    Tx_Filter_State=h(1:end-1); % Fill filter with a +1 symbol
    Rx_Filter_State=h(1:end-1); % Fill filter with a +1 symbol

    % Main simulation loop
    % Each packet is transmitted and the recieved bits compared with the
    % transmitted bits to calculate the BER.
    for Packet=1:NumPackets

        % Construct frame of bits
        Tx_bits=rand(PacketSizeBits1)>.5;           % Random bits

        % Modulate
        Tx_bits_bp=(1-2*Tx_bits);                    % Convert to bipolar 01 --> 1 -1
        Tx_symbols=LastTxSymbol*cumprod(Tx_bits_bp); % New DBPSK symbol = previous

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

     文件      38912  2005-02-16 17:17  Matlab_Wireless_Communications_example\WCDMA FDD Simulink Models\Description.doc

     文件    1355279  2005-02-16 17:17  Matlab_Wireless_Communications_example\WCDMA FDD Simulink Models\WCDMA Model + presentation.zip

     文件      47104  2005-02-16 20:42  Matlab_Wireless_Communications_example\UWB polycycle\Description.doc

     文件       3084  2005-02-16 20:43  Matlab_Wireless_Communications_example\UWB polycycle\gpolycycle1.m

     文件      46080  2005-02-16 20:50  Matlab_Wireless_Communications_example\UWB monopulse1\Description.doc

     文件       2350  2005-02-16 20:49  Matlab_Wireless_Communications_example\UWB monopulse1\UWB_monocycle1.m

     文件      46592  2005-02-16 20:38  Matlab_Wireless_Communications_example\UWB Monocycle\Description.doc

     文件       2571  2005-02-16 20:38  Matlab_Wireless_Communications_example\UWB Monocycle\UWB_monocycle1.m

     文件      46080  2005-02-16 20:45  Matlab_Wireless_Communications_example\UWB link Analysis\Description.doc

     文件       5633  2005-02-16 20:45  Matlab_Wireless_Communications_example\UWB link Analysis\UWB_monocycle2.m

     文件      37376  2005-02-16 20:41  Matlab_Wireless_Communications_example\UWB channel model\Description.doc

     文件      11051  2005-02-16 20:40  Matlab_Wireless_Communications_example\UWB channel model\UWB_Channel_IEEE_802_15_3a.zip

     文件      46080  2005-02-16 20:54  Matlab_Wireless_Communications_example\UWB BPSK Fifth Order Derivative\Description.doc

     文件      15374  2005-02-16 20:53  Matlab_Wireless_Communications_example\UWB BPSK Fifth Order Derivative\UWBBPSK3.m

     文件      46080  2005-02-16 20:44  Matlab_Wireless_Communications_example\UWB BPSK Analysis\Description.doc

     文件      17757  2005-02-16 20:44  Matlab_Wireless_Communications_example\UWB BPSK Analysis\UWBBPSK.m

     文件      46080  2005-02-16 20:47  Matlab_Wireless_Communications_example\UWB Analysis\Description.doc

     文件      10829  2005-02-16 20:47  Matlab_Wireless_Communications_example\UWB Analysis\UWB_analysis.m

     文件      46080  2005-02-16 20:52  Matlab_Wireless_Communications_example\Uncorrelated Rayleigh fading channels\Description.doc

     文件       2417  2005-02-16 20:52  Matlab_Wireless_Communications_example\Uncorrelated Rayleigh fading channels\modified_jakes.m

     文件      39424  2005-02-16 17:31  Matlab_Wireless_Communications_example\Ultrawideband (UWB) multiband OFDM physical layer with fixed-point transmitterreceiver modeling\Description.doc

     文件     116057  2005-02-16 17:29  Matlab_Wireless_Communications_example\Ultrawideband (UWB) multiband OFDM physical layer with fixed-point transmitterreceiver modeling\uwb.zip

     文件      47616  2005-02-16 20:26  Matlab_Wireless_Communications_example\Two Tone Test for LNA in RF Receiver\Description.doc

     文件      45571  2005-02-16 20:26  Matlab_Wireless_Communications_example\Two Tone Test for LNA in RF Receiver\two_tone_lna.mdl

     文件      46080  2005-02-16 20:56  Matlab_Wireless_Communications_example\Transmission line length formula for coaxial cable to an antenna\Description.doc

     文件        296  2005-02-16 20:55  Matlab_Wireless_Communications_example\Transmission line length formula for coaxial cable to an antenna\xmitlnlength.m

     文件      60416  2005-02-16 19:47  Matlab_Wireless_Communications_example\ToyFDTD (Example of the FDTD method with graphical output)\Description.doc

     文件      29166  2005-02-16 19:45  Matlab_Wireless_Communications_example\ToyFDTD (Example of the FDTD method with graphical output)\ToyFDTD1.m

     文件      49152  2005-02-16 17:48  Matlab_Wireless_Communications_example\Software Defined Radio\Description.doc

     文件      28602  2005-02-16 17:48  Matlab_Wireless_Communications_example\Software Defined Radio\sdr_model.zip

............此处省略177个文件信息

评论

共有 条评论