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

📄 mcp_removal.m

📁 OFDMA 物理层开发的matlab 源码.飞思卡尔提供.对物理层开发的工程师有帮助!
💻 M
字号:
% #########################################################################
% ####   Matlab program for synchronization and cyclic prefix           ###
% ####   removal for FFT computation                                    ###
% ####   Inputs:                                                        ###
% ####   - A block of complex time domain Tx samples is received as an  ###
% ####      input,arranged in a column vector.                          ###
% ####   - block length ns(n. samples).                                 ###
% ####   - delay to start the window for FFT computation(n. samples).   ###
% ####   Processing:                                                    ###
% ####    - cyclic prefix removal                                       ###
% ####   Outputs:                                                       ###
% ####   - A block of complex time domain Tx samples of the same length ###
% ####     as the FFT order                                             ###
% ####                                                                  ###
% #########################################################################

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  Property of Freescale
%  Freescale Confidential Proprietary
%  Freescale Copyright (C) 2005 All rights reserved
%  ----------------------------------------------------------------------------
%  $RCSfile: mCp_removal.m.rca $
%  $Date: Fri Nov 10 05:57:17 2006 $
%  Target: Matlab
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function [out] = mCp_removal(inp,ns,n_cp,delay)

symbols = floor((length(inp)-delay)/(n_cp+ns));
temp = reshape(inp(delay+(1:symbols*(n_cp+ns))),n_cp+ns,symbols);
out = reshape(temp(n_cp+1:end,:),ns,symbols);

⌨️ 快捷键说明

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