www.pudn.com > WCDMA.rar > GenRootRaisedCosine.m


function [y,t]=GenRootRaisedCosine(LBound,UBound,SampleRate,RollOff,SymbolPeriod) 
%********************************************************************************** 
%function [y,t]=GenRootRaisedCosine(LBound,UBound,SampleRate,RollOff,SymbolPeriod) 
% 
% Copyright 2002 The Mobile and Portable Radio Research Group 
% 
% 
%Generates the impulse response of a square-root raised cosine filter.  Note that 
%the impuse response of such a filter ranges from -infinity to infinity.  It is  
%therefore necessary to truncate it from LBound to UBound 
% 
% Parameters 
%   Input 
%      LBound         Scalar    Determines the minimum limit of the truncated  
%                               impulse response normalized by symbol period 
%      UBound         Scalar    Determines the maximum limit of the truncated  
%                               impulse response normalized by symbol period 
%      SampleRate     Scalar    The number of samples per symbol duration 
%      RollOff        Scalar    Rolloff of the Filter.  Must not exceed 1 
%      SymbolPeriod   Scalar    Symbol Duration (in seconds) 
%  
%   Output 
%      y              vector    Impulse response 
%      t              vector    Time indexes 
%**********************************************************************************