Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock 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
Sep 19, 2011
13
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
 
Replies continue below

Recommended for you

Status
Not open for further replies.

Part and Inventory Search

Sponsor