📄 mrx_time_domain.m
字号:
% #####################################################################
% #### Matlab floating point program for CP removal, FFT ###
% #### (OFDM demodulataion) and left and right GI removal. ###
% #### This function uses built in FFT function (floating point) ###
% #####################################################################
% Input:
% ZoneConfig -- ZoneConfig structure
% TPparam -- TPparam structure
% d_v_time_inp -- Row vector. Noise and channel model added Tx
% signal of MS (Tx signal of BS)
% TC -- NA
% Output:
% d_v_freq_out -- Output data (Matrix [phy subcari, ofdma sym])
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Property of Freescale
% Freescale Confidential Proprietary
% Freescale Copyright (C) 2005 All rights reserved
% ----------------------------------------------------------------------------
% $RCSfile: mRx_Time_Domain.m.rca $
% $Revision: 1.7 $
% $Date: Wed Dec 13 16:55:14 2006 $
% Target: Matlab
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%-- Matlab files used by this file
% mCp_removal
% mGIRemove
%-- End of list
function [d_v_freq_out] = mRx_Time_Domain(ZoneConfig,TPparam,d_v_time_inp)
% initialization
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Read system parameters of desired test case
ns = TPparam.SizeFFT; % Number of QAM samples per OFDM symbol(FFT order)
n_cp = TPparam.SizeCP; % Cyclic Prefix length(number of elements)
% processing
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Remove cyclic prefix
fft_inp = mCp_removal(d_v_time_inp,ns,n_cp,0);
% FFT computation
fft_out = fft(fft_inp);
d_v_freq_out_withGuard = fft_out; % before guard removal
%remove guard bands (and shift DC to the middle)-> guard removal is put
%into TP
d_v_freq_out = mGIRemove(d_v_freq_out_withGuard,ZoneConfig.NFFT,ZoneConfig.LGuard,ZoneConfig.RGuard);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -