The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: how to choose 2nd element in the length of a combination
Replies: 1   Last Post: Dec 28, 2012 9:16 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
sathish kumar

Posts: 17
Registered: 7/24/12
how to choose 2nd element in the length of a combination
Posted: Dec 27, 2012 4:26 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.