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

📄 mcodeblkdeseg.m

📁 OFDMA 物理层开发的matlab 源码.飞思卡尔提供.对物理层开发的工程师有帮助!
💻 M
字号:
function [Out] = mCodeBlkDeseg(In,BlkSize)
% Uplink code block desegmentation for OFDMA of IEEE 802.16 (WiMAX)
%
%     [Out] = mCodeBlkDeseg(In,BlkSize)
%
% This module performes the desegmentation of the code blocks into one chunk
% of burst payload data.
%
% In      : input matrix (bytes, values 0 to 255)
%           One column per code block, the number of elements in each column
%           is the maximum code block size for the specified FEC code and
%           modulation type.
% BlkSize : row vector, length = number of code blocks
%           number of payload data bytes for each code block
%
% Out     : burst payload output vector (bytes, values 0 to 255)
%
% Matlab 7 Release 14 SP2

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  Property of Freescale
%  Freescale Confidential Proprietary
%  Freescale Copyright (C) 2005 All rights reserved
%  ----------------------------------------------------------------------------
%  $RCSfile: mCodeBlkDeseg.m.rca $
%  $Revision: 1.3 $
%  $Date: Thu Oct 19 17:34:16 2006 $
%  Target: Matlab
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

[m,n]=size(In);

%check dimensions
[x,y]=size(BlkSize);
if ((x~=1)|(y~=n))
    error('Error: BlkSize must be row vector with the same number of columns as In.');
end

Out=In(1:BlkSize(1),1);
if n>1
    for k=2:n,
        Out= [ Out ; In(1:BlkSize(k),k) ];
    end
end

⌨️ 快捷键说明

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