Info

This question is closed. Reopen it to edit or answer.

after running a programming i have got some outputs but i only want to get output which is within a range suppose +0.1<output>-0.1.give some sugesstion.

3 views (last 30 days)
After running a programming i have got some output but i only want to get output which is within a range suppose +0.1<output>-0.1.give some sugesstion.
  1 Comment
Walter Roberson
Walter Roberson on 8 Sep 2015
Are you sure you would not prefer the output in the range
+0.1 > output > -0.1
Your current request is equivalent to
+0.1 < output
since output that is larger than +0.1 will also be > -0.1
When you say that you received some output, do you mean that some data was displayed on the screen and you want to remove all of the lines that do not mention values within that range? For example, if the current output was
Date X Y
----- ---- ----
Jan 3 0.05 2.8
Jan 5 -0.09 -0.07
then you would like that filtered down to just
Jan 3 0.05 2.8
because that is the only line that contains a value in the desired range?

Answers (0)

This question is closed.

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!