cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

clamping a vector in Mathcad prime

IK_10956397
10-Marble

clamping a vector in Mathcad prime

hi - I'm trying to limit the maximum and minimum value in a vector to with a clamping function.

In my file the vector is to be limited to a minimum of zero and maximum of 5. Can anybody help me find out what I am doing wrong?

Newbie alert - be kind please 🙂

thanks, Ian

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:IK_10956397)

No need to vectorize v because its already a vector 😉

You have to vectorize the whole function call. That way the elements of the vector argument v a fed singly into the function which is what you want to happen:

Werner_E_0-1710422258853.png

 

View solution in original post

3 REPLIES 3
Werner_E
25-Diamond I
(To:IK_10956397)

No need to vectorize v because its already a vector 😉

You have to vectorize the whole function call. That way the elements of the vector argument v a fed singly into the function which is what you want to happen:

Werner_E_0-1710422258853.png

 

Ahhh, Brilliant !!

Many thanks Werner_E - you're on my Christmas card list 🙂

ttokoro
20-Turquoise
(To:IK_10956397)

image.png

Announcements

Top Tags