How can I show some properties of specific points on the plots
2 views (last 30 days)
Praveen Reddy on 13 Apr 2023
I understand that you want to label some points in a plot. You can label the points using “text” function. Below is an example where some points are labelled with their corresponding y-value.
x = linspace(0,3*pi,10);
y = cos(x) + rand(1,10);
To know more about “text” function, please refer to the following MATLAB documentation: