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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Filter numbers out of the vector according to some condition

ptc-4697137
1-Newbie

Filter numbers out of the vector according to some condition

For MathCAD 15.0, is there any convenient way in MathCAD to filter the numbers outside of the specified range away from the vector?

e.g.

X=(-0.344 0.344 -1.056, 1.056)

but I only want answer within the range of 0.45<X<2

So the correct answer and only answer should remain is X=1.056 in this case.

I know there's the assume and RealRange(min,max) functions, but I'm not sure if it can be applied here. If so, how does it work?

Please advice.

1 REPLY 1

You could do it like this:

Fxsolvec.PNG

However, since the end result is numerical you are better off solving numerically from the off, as in your other thread.

Alan

Top Tags