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

📄 mmapdl.m

📁 OFDMA 物理层开发的matlab 源码.飞思卡尔提供.对物理层开发的工程师有帮助!
💻 M
字号:
%***************************************************************************
%  802.16-2004 OFDMA PHY - mMapDL downlink function
%
%           [OFDMA_MappedSymbols] = mMapDL(OFDMA_Symbols_subchannels)
%
%    Description: This functions recives a slot vector and reorganizes it
%                   into a two OFDMA symbols strcuture, based on subchanels
%                   Input assumed as: column vector of Nx48 elements, where
%                   N depends on FFT size. Output is matrix of two vectors,
%                   each with OFDMA symbol without related pilots but with
%                   data values.
%
%    Input:
%                 OFDMA_Symbols_subchannels: Input data organized in matrix of
%                   Nx48 elements. N depends on the FFT size (60,30,...)
%    Output:
%                 OFDMA_MappedSymbols: 2 OFDMA symbols with data values mapped.
%                   Structured in 2 columns each contains data of OFDMA
%                   symbol.
%
%    Functions:
%                N/A
%
%    Data Files:
%                N/A
%
%***************************************************************************

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  Property of Freescale
%  Freescale Confidential Proprietary
%  Freescale Copyright (C) 2005 All rights reserved
%  ----------------------------------------------------------------------------
%  $RCSfile: mMapDL.m.rca $
%  $Revision: 1.3 $
%  $Date: Fri Oct 20 17:22:52 2006 $
%  Target: Matlab
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


function [OFDMA_MappedSymbols] = mMapDL(OFDMA_Symbols_subchannels)

[m,n] = size(OFDMA_Symbols_subchannels);

if (n~=1) | mod(m,48)
    error('Error: Input must be a column vector. Length must be a multiple of 48.');
end

N = m/48;

%one colum per subchannel (1st symbol = odd columns, 2st symbol = even columns
temp = reshape(OFDMA_Symbols_subchannels,24,N*2);

%one column per OFDMA symbol
OFDMA_MappedSymbols = reshape([temp(:,1:2:end), temp(:,2:2:end)],N*24,2);

⌨️ 快捷键说明

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