How to plot a comparison of two values to a main value

1 view (last 30 days)
example
Result A is the largest value out of 1000 random values between 0 and 20 that is closest to 15 without going over 15.
Result B is the smallest value out of the 1000 random values that is larger than 15.
I have the code finding Results A and B, but I want to use a plot to show some meaningful analysis. Im not sure what I could plot or what the axis would look like.
Maybe I want to plot showing how close Results A,B are to 15.
ex.
If result A is 12.88 and result B is 15.76 what type of chart would best show how close the results are to 15?
Result A and B are very close to 15. Is there a way I could plot the percentage the results are over/under 15? Or is there some other way I could use a plot to show result A and B are very close to 15?

Accepted Answer

KSSV
KSSV on 5 Feb 2020
Read about scatter.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!