Example Designing a Square-Root Raised Cosine Filter

For example, the command below designs a square-root raised cosine FIR filter with a sampling rate of 2, for use with a digital signal whose sampling rate is 1.

num = rcosine(1,2,'fir/sqrt')
num =

  Columns 1 through 7 

    0.0021   -0.0106    0.0300   -0.0531   -0.0750    0.4092    0.8037

  Columns 8 through 13 

    0.4092   -0.0750   -0.0531    0.0300   -0.0106    0.0021

Here, the vector num contains the coefficients of the filter, in ascending order of powers of z-1.


© 1994-2005 The MathWorks, Inc.