From: "sathish kumar" <>
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$>
Reply-To: "sathish kumar" <>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1356600368 5314 (27 Dec 2012 09:26:08 GMT)
NNTP-Posting-Date: Thu, 27 Dec 2012 09:26:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3581544
Xref: 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