mmapdl.m
来自「OFDMA 物理层开发的matlab 源码.飞思卡尔提供.对物理层开发的工程师有」· M 代码 · 共 57 行
M
57 行
%***************************************************************************
% 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 + =
减小字号Ctrl + -
显示快捷键?