⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test_mfastfeedback.m

📁 OFDMA 物理层开发的matlab 源码.飞思卡尔提供.对物理层开发的工程师有帮助!
💻 M
字号:
%
% Tests the mFastFeedback Kernel
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  Property of Freescale
%  Freescale Confidential Proprietary
%  Freescale Copyright (C) 2005 All rights reserved
%  ----------------------------------------------------------------------------
%  $RCSfile: test_mFastFeedback.m.rca $
%  Tag $Name:  $
%  $Revision: 1.1 $
%  $Date: Fri Dec  1 14:00:29 2006 $
%  Target: Matlab
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%-- Matlab files used by this file
%mFastFeedback
%mGetBin
%LUT
%--


function status = test_mFastFeedback

clear all
clear global

addpath('./..')

SNRrange=[Inf -5 ];
status=[];

for SNR=SNRrange
    disp([' '])
    disp(['SNR: ' int2str(SNR) '  ,testing vector IF2RX_00_00_00_00.lod ... ' ])

    SNRstr = ['SNR' int2str(SNR)];

    vectorsNoisy = mGetBin(['./vector/' SNRstr '/in/IF2RX_00_00_00_00.lod'],'int16','1R1I');
    myRef = mGetBin(['./vector/' SNRstr '/ref/IF1mRX_00_00_00_00.lod'],'int8','R') + 1;
    vectorsNoisy = double(vectorsNoisy);
    myRef = double(myRef);
    mOut=[];

    %-- Call function
    for k=1:48:size(vectorsNoisy,1)
        mOut(end+1,1) =  mFastFeedback(vectorsNoisy(k:k+47));
    end

    %-- Evaluate differences
    diff = (mOut~=myRef);
    disp([int2str(sum(diff)) ' detection errors.'])

    switch SNR
        case Inf
            ok = (sum(diff)==0);
        case -5
            ok = (sum(diff)<=1);
    end

    if ok
        disp('Matlab Kernel mFastFeedback passed for vector IF2RX_00_00_00_00.lod .')
        status(1,end+1)= 1 ;
    else
        disp('Matlab Kernel mFastFeedback failed for vector IF2RX_00_00_00_00.lod .')
        status(1,end+1)= -1 ;
    end


end

disp('generateVectorsForFFB finished')



rmpath('./..')




⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -