Path: news.mathworks.com!not-for-mail
From: "George " <jorgmartnez@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Creating loops
Date: Tue, 4 Dec 2012 09:15:09 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 28
Message-ID: <k9keut$13j$1@newscl01ah.mathworks.com>
Reply-To: "George " <jorgmartnez@gmail.com>
NNTP-Posting-Host: www-04-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1354612509 1139 172.30.248.35 (4 Dec 2012 09:15:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 4 Dec 2012 09:15:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3900984
Xref: news.mathworks.com comp.soft-sys.matlab:784118

How could I go about creating a loop to do the following calculations?

paddedsig1=[zeros(1,l_hn-1),sig_pt1];
paddedsig2=[zeros(1,l_hn-1),sig_pt2];
paddedsig3=[zeros(1,l_hn-1),sig_pt3];
paddedsig4=[zeros(1,l_hn-1),sig_pt4];
paddedsig5=[zeros(1,l_hn-1),sig_pt5];
paddedsig6=[zeros(1,l_hn-1),sig_pt6];
paddedsig7=[zeros(1,l_hn-1),sig_pt7];
paddedsig8=[zeros(1,l_hn-1),sig_pt8];

FFTSIG1=fft(paddedsig1);
FFTSIG2=fft(paddedsig2);
FFTSIG3=fft(paddedsig3);
FFTSIG4=fft(paddedsig4);
FFTSIG5=fft(paddedsig5);
FFTSIG6=fft(paddedsig6);
FFTSIG7=fft(paddedsig7);
FFTSIG8=fft(paddedsig8);

Ypt1=FFTSIG1.*Hn5;
Ypt2=FFTSIG2.*Hn5;
Ypt3=FFTSIG3.*Hn5;
Ypt4=FFTSIG4.*Hn5;
Ypt5=FFTSIG5.*Hn5;
Ypt6=FFTSIG6.*Hn5;
Ypt7=FFTSIG7.*Hn5;
Ypt8=FFTSIG8.*Hn5;