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

1 Ansicht (letzte 30 Tage)
Nikolas Vieira
Nikolas Vieira am 5 Feb. 2020
Beantwortet: KSSV am 5 Feb. 2020
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?

Akzeptierte Antwort

KSSV
KSSV am 5 Feb. 2020
Read about scatter.

Weitere Antworten (0)

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by