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

📄 cp_insertion.m

📁 OFDMA 物理层开发的matlab 源码.飞思卡尔提供.对物理层开发的工程师有帮助!
💻 M
字号:
% #########################################################################
% ####   Matlab program for cyclic prefix insertion                     ###
% ####   Inputs:                                                        ###
% ####   - A block of complex time domain Tx samples is received as an  ###
% ####      input,arranged in a vector.                                 ###
% ####   - cyclic prefix length n_cp(n. samples).                       ###
% ####   Processing:                                                    ###
% ####    - cyclic prefix insertion                                     ###
% ####   Outputs:                                                       ###
% ####   - A block of complex time domain Tx samples with cyclic prefix ###
% ####     inserted at beginning                                        ###
% ####                                                                  ###
% #########################################################################

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  Property of Freescale
%  Freescale Confidential Proprietary
%  Freescale Copyright (C) 2005 All rights reserved
%  ----------------------------------------------------------------------------
%  $RCSfile: cp_insertion.m.rca $
%  $Revision: 1.3 $
%  $Date: Fri Aug  4 04:18:21 2006 $
%  Target: Matlab
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function [out] = cp_insertion(inp, n_cp)

[m,n]=size(inp);
out = [inp(m-n_cp+1:m,:) ; inp];

⌨️ 快捷键说明

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