clamping a vector in Mathcad prime
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Ahhh, Brilliant !!
Many thanks Werner_E - you're on my Christmas card list 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
