Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pulling Variables out of a Vector for use in functions 1

Status
Not open for further replies.

1clown

Mechanical
Joined
Sep 19, 2011
Messages
13
Location
NZ
Hi Guys,

I Have a problem where I have a vector with 8 rows and need to divide it up into 2 different groups.

Group no.1 contains lines 0,3,4,5,&7 while Group 2 contains lines 1,2&6.

I need to use the vector quanties in a range of different if & min/max functions further down the page.
I have tried manually loading them into a vector called D and referencing this using

X:=0..(rows(D)-1)

however this pulls the first 5 lines out of the vector referenced and not the random selection i'm looking for.

Any help would be appreciated.

Thanks
Kevin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top