How to display the minimum value from in plot?
3 次查看(过去 30 天)
显示 更早的评论
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 :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/154156/image.png)
How can i display the additional information in my plot such as : "The minimum Value from the plot is Number of MyMinimumValue From Plot" ?
0 个评论
采纳的回答
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 个评论
Star Strider
2016-6-19
My pleasure.
See the documentation for text for details on everything you can do with the function.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!