필터 지우기
필터 지우기

How to display the minimum value from in plot?

조회 수: 3 (최근 30일)
Alvindra Pratama
Alvindra Pratama 2016년 6월 19일
댓글: Star Strider 2016년 6월 19일
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" ?

채택된 답변

Star Strider
Star Strider 2016년 6월 19일
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
Alvindra Pratama
Alvindra Pratama 2016년 6월 19일
Thank you sir i will try this
Star Strider
Star Strider 2016년 6월 19일
My pleasure.
See the documentation for text for details on everything you can do with the function.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by