Skip to main content
1-Visitor
May 20, 2013
Solved

selection of items in a Marix

  • May 20, 2013
  • 10 replies
  • 2923 views

Hello everybody,

I need some help to select sevral lign in a matrix using a logical test and then create a vector which wwould summarize all selected items.

To be more accurate, my problem is to select the right "spring" cosidering given deflexion and maximum reaction load within this loading configuration. I already creat a fonction which calculat the reaction load for a given deflexion and spring model ( equ_paulstra_reactionload("matrix of the approximated polynomial coeficient which give reaction load in function of the deflexion","deflexion","ligne of the considered model" ). Then I would create a fonction which test each spring and put them in a vector using there reference.

I join my work done so far.

Thanks a lot for your elp,

regards,

Mathieu STAUCH

Best answer by MikeArmstrong

Have a look if the attached is of any help.

I have added units to max_spring_reaction - you might want to change them

Mike

10 replies

1-Visitor
May 20, 2013

You haven't defined Reaction_Spring.

Mike

1-Visitor
May 20, 2013

My mistake,

Reaction_Spring is defined at the beginnig as max_spring_reaction. (I modified it but Im not able to send it on my response, sorry)

Mat

1-Visitor
May 20, 2013

Have a look if the attached is of any help.

I have added units to max_spring_reaction - you might want to change them

Mike

23-Emerald I
May 20, 2013

cleaned up two programming errors.

1-Visitor
May 20, 2013

Nothing attached Fred.

Mike