• 大小: 3.66MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-27
  • 语言: Matlab
  • 标签: wimax  系统仿真  

资源简介

外国一个大学做的WIMAX系统仿真,matlab,什么都有了!

资源截图

代码片段和文件信息

function H = channel_matrix(ChanMod)
global init;
persistent block;
persistent rv;

if strcmp(ChanMod.UserScenario‘Test‘)
    NTap = size(ChanMod.PDP_dB2);                         % Number of Taps
    TDel = round(0.1e9.*ChanMod.PDP_dB(2:));              % Delays (nanosecond samples)
    Tlen = max(TDel);                                      % Maximum Tap-delay
    H = zeros(ChanMod.nRXChanMod.nTXTlen);
    for tap = 1 : NTap
        G = 1;%randn(ChanMod.nRXChanMod.nTX) + j*randn(ChanMod.nRXChanMod.nTX);
        H(::TDel(1tap)+1) = ...
            sqrt(10.^(ChanMod.PDP_dB(1tap)./10))*G;
    end
else
    NTap = size(ChanMod.PDP_dB2);                         % Number of Taps
    H = zeros(ChanMod.nRXChanMod.nTXChanMod.PDP_dB(end)+1);
    switch ChanMod.Type
        case ‘BlockFading‘
            % generate channel realization
            for tap = 1 : NTap
                if ChanMod.K == 0
                G = (randn(ChanMod.nRXChanMod.nTX) + j*randn(ChanMod.nRXChanMod.nTX))/sqrt(2);
                H(::ChanMod.PDP_dB(2tap)+1) = ...
                    sqrt(10.^(ChanMod.PDP_dB(1tap)./10)).*...
                    (sqrtm(squeeze(ChanMod.rRX(tap::)))*G*...
                    (sqrtm(squeeze(ChanMod.rTX(tap::)))).‘);
                else
                G = (randn(ChanMod.nRXChanMod.nTX) + j*randn(ChanMod.nRXChanMod.nTX))/sqrt(2);
                H(::ChanMod.PDP_dB(2tap)+1) = ...
                    sqrt(ChanMod.K/(ChanMod.K+1))*exp(j*rand(ChanMod.nRXChanMod.nTX)*2*pi) + ...
                    sqrt(1/(ChanMod.K+1))*sqrt(10.^(ChanMod.PDP_dB(1tap)./10)).*...
                    (sqrtm(squeeze(ChanMod.rRX(tap::)))*G*...
                    (sqrtm(squeeze(ChanMod.rTX(tap::)))).‘);                   
                end
            end
        case ‘TV_Block‘ 
            H = zeros(ChanMod.nRXChanMod.nTXChanMod.PDP_dB(end)+1);
            if init
                rv = zeros(ChanMod.nRXChanMod.nTXNTap3ChanMod.Paths);
            end
            error(‘the function “jakes“ is not available in the open source version of the WiMAX simulator‘)
            for tap = 1:NTap
                for mm = 1:ChanMod.nTX
                    for nn = 1:ChanMod.nRX
                        if init
                            block = 0;
                            [H(nnmmChanMod.PDP_dB(2tap)+1)rv(nnmmtap::)] = jakes(ChanMod.f_d_max1/ChanMod.FreqChanMod.Paths1‘JAKES‘block*ChanMod.InputSamplesNoTail/ChanMod.Freq[]);
                            H(nnmmChanMod.PDP_dB(2tap)+1) = sqrt(10.^(ChanMod.PDP_dB(1tap)./10)).*H(nnmmChanMod.PDP_dB(2tap)+1:);
                        else
                            H(nnmmChanMod.PDP_dB(2tap)+1) = sqrt(10.^(ChanMod.PDP_dB(1tap)./10)).*jakes(ChanMod.f_d_max1/ChanMod.FreqChanMod.Paths1‘JAKES‘block*ChanMod.InputSamplesNoTail/ChanMod.Freqsqueeze(rv(nnmmtap::)));
                        end
                    end
       

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2008-11-13 13:21  WiMAX 2.2 online\
     文件        3595  2008-11-10 13:59  WiMAX 2.2 online\channel_matrix.m
     文件        3480  2008-11-10 13:58  WiMAX 2.2 online\channel_model.m
     文件       10240  2008-11-12 13:33  WiMAX 2.2 online\dbconvdec.mexw32
     文件       11264  2008-11-12 14:49  WiMAX 2.2 online\dbconvdec.mexw64
     文件        1242  2003-08-28 23:40  WiMAX 2.2 online\dec2binvec.m
     文件        5369  2006-11-20 10:16  WiMAX 2.2 online\GoldenCode_4QAM_Table.mat
     目录           0  2008-11-10 13:46  WiMAX 2.2 online\LDPC_codes\
     文件      339506  2007-10-20 09:30  WiMAX 2.2 online\LDPC_codes\12672.dec
     文件      312132  2007-10-20 09:30  WiMAX 2.2 online\LDPC_codes\12672.enc
     文件      699924  2007-10-20 17:27  WiMAX 2.2 online\LDPC_codes\16896.dec
     文件     1385323  2007-10-20 17:27  WiMAX 2.2 online\LDPC_codes\16896.enc
     文件      691475  2007-10-20 10:14  WiMAX 2.2 online\LDPC_codes\25344.dec
     文件      671187  2007-10-20 10:14  WiMAX 2.2 online\LDPC_codes\25344.enc
     文件     1089135  2007-10-20 16:30  WiMAX 2.2 online\LDPC_codes\33792.dec
     文件     1252091  2007-10-20 16:30  WiMAX 2.2 online\LDPC_codes\33792.enc
     文件     1092756  2007-10-20 16:07  WiMAX 2.2 online\LDPC_codes\38016.dec
     文件     1063759  2007-10-20 16:07  WiMAX 2.2 online\LDPC_codes\38016.enc
     文件      166321  2007-10-20 10:41  WiMAX 2.2 online\LDPC_codes\4224.dec
     文件      216134  2007-10-20 10:41  WiMAX 2.2 online\LDPC_codes\4224.enc
     文件      343730  2007-10-20 09:45  WiMAX 2.2 online\LDPC_codes\8448.dec
     文件      513840  2007-10-20 09:45  WiMAX 2.2 online\LDPC_codes\8448.enc
     文件        3467  2007-10-29 16:46  WiMAX 2.2 online\ldpc_test.m
     文件       74131  2008-11-13 11:49  WiMAX 2.2 online\License Agreement WiMAX Simulator.pdf
     文件       12162  2008-11-10 14:27  WiMAX 2.2 online\load_parameters.m
     文件       11032  2008-11-10 16:55  WiMAX 2.2 online\load_parameters_dependent.m
     文件         427  2008-11-11 08:25  WiMAX 2.2 online\marginals2sym.m
     文件       12288  2008-11-12 13:37  WiMAX 2.2 online\mexLDPC.mexw32
     文件       15872  2008-11-12 14:50  WiMAX 2.2 online\mexLDPC.mexw64
     文件       12429  2008-11-10 17:29  WiMAX 2.2 online\qam_demapper_h.m
     目录           0  2008-11-13 13:23  WiMAX 2.2 online\results\
............此处省略15个文件信息

评论

共有 条评论