Path: news.mathworks.com!not-for-mail
From: "sathish kumar" <satty634@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: how to choose 2nd element in the length of a combination
Date: Thu, 27 Dec 2012 09:26:08 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 13
Message-ID: <kbh47g$562$1@newscl01ah.mathworks.com>
Reply-To: "sathish kumar" <satty634@gmail.com>
NNTP-Posting-Host: www-00-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1356600368 5314 172.30.248.45 (27 Dec 2012 09:26:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 27 Dec 2012 09:26:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3581544
Xref: news.mathworks.com comp.soft-sys.matlab:785470

good afternoon 
i have a combination of 1 2 3 4
l=length(comb)  == 4;
now i have at step
for k=1:length(comb);
W= ((tk*u)/p)*pk;
my aim is i want to consider 2 3 4 elements .i dont want to consider 1st element
please tell me how to write the step as required above
i have written like this
 for k=1:length(comb)-1;
W= ((tk*u)/p)*pk;
is it write  ?
please tell me