Ignore non solution in Solve Block
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Ignore non solution in Solve Block
I have a list of data. Some do not give a solution within the tolerance. What is the best way to ignore and move onto the next set of data? Is there a way to set a more coarse tolerance value?
Prime 10 attached.
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I would suggest to use "try ... on error ..." to catch the errors and return a NaN in that case.
If you like you may use "filterNaN" to get rid of the NaN's
Prime 10 file attached
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I would suggest to use "try ... on error ..." to catch the errors and return a NaN in that case.
If you like you may use "filterNaN" to get rid of the NaN's
Prime 10 file attached
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Used minerr which worked for me in this case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
If using "minerr" works OK for you, that's fine.
But you have to be aware that you may get inaccurate or even wrong (depending on your application) results without you noticing it.
In your case, the vector calculated in the pic ideally should consist of all zeros.
Apart from the first and last entry the values are way off!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Yes there are wild fluctuations with some clustering. It is essentially locating faults on a transmission line.
On a good day it should look like :
Thank you for your help.
