Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to generate a Raised Cosine Impulse Response
Date: Sun, 8 Nov 2009 11:20:18 +0000 (UTC)
Organization: The MathWorks Inc
Lines: 20
Message-ID: <hd69hi$fp4$1@fred.mathworks.com>
References: <hd6612$f17$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257679218 16164 172.30.248.35 (8 Nov 2009 11:20:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 8 Nov 2009 11:20:18 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1597503
Xref: news.mathworks.com comp.soft-sys.matlab:583324


"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