Filter löschen
Filter löschen

How to display the minimum value from in plot?

3 Ansichten (letzte 30 Tage)
Alvindra Pratama
Alvindra Pratama am 19 Jun. 2016
Kommentiert: Star Strider am 19 Jun. 2016
I have write this code to show my result into plot :
figure, plot(mahal);
xlabel('Banyak Data'), ylabel('Hasil Pengukuran Mahalanobis');
xlim([1 imgcount]), ylim([0 0.5]), grid on
So my plot will be like this :
How can i display the additional information in my plot such as : "The minimum Value from the plot is Number of MyMinimumValue From Plot" ?

Akzeptierte Antwort

Star Strider
Star Strider am 19 Jun. 2016
Use a text object:
My_Minimum_Value_From_Plot = 0.012345;
text(66, 1/3, sprintf('"The minimum Value from the plot is Number of %.3f"', My_Minimum_Value_From_Plot))
Experiment with the placement and text to get the result you want.
  2 Kommentare
Alvindra Pratama
Alvindra Pratama am 19 Jun. 2016
Thank you sir i will try this
Star Strider
Star Strider am 19 Jun. 2016
My pleasure.
See the documentation for text for details on everything you can do with the function.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D 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