Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Filter numbers out of the vector according to some...

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

11-21-2013
07:57 AM

11-21-2013
07:57 AM

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.

Labels:

1 REPLY 1

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

11-21-2013
08:46 AM

11-21-2013
08:46 AM

Re: Filter numbers out of the vector according to some condition

You could do it like this:

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

Alan