|
"Wayne King" <wmkingty@gmail.com> wrote in message <hd69hi$fp4$1@fred.mathworks.com>...
> "Xu " <vento143@sohu.com> wrote in message <hd6612$f17$1@fred.mathworks.com>...
> > Hi, I am a novice. Could anybody tell me how to use MatLab to generate a raised cosine impulse response with 121 samples with roll-off factor equals 0.5?
> >
> > Thanks in advance.
>
> Hi Xu,
>
> h = fdesign.pulseshaping(10,'Raised Cosine','Nsym,Beta',10,0.5); % just an example
> % 10 samples per symbol and 10 symbols, total impulse response length here
> % is 101. Rolloff factor is 0.5
> Hd = design(h); % design the filter (window method)
> fvtool(Hd,'analysis','impulse') % view the impulse response
> ImpResponse = Hd.Numerator; % get impulse response
>
> See
> >>doc fdesign.pulseshaping
> for more info.
>
> Hope that helps,
> wayne
Thank you very much. following your solution, the problem has been solved!
:)
|