Highlight a point on graph.
230 次查看(过去 30 天)
显示 更早的评论
I have a graph in which i want to highlight a point by 'o'.I want to highlight the point to see if the chosen values are in the acceptable region. Also how to shade differently the acceptable region and otherwise region on the graph.
0 个评论
回答(1 个)
Junaid
2012-4-24
Lets say you have a curve, and you know one point which you want to highlight. Then simply plot that point with different marker.
Ex.
a = fspecial('gaussian', [100 1],0.9); % Gaussian distriubution.
plot(a); % you will see Gaussian curve. Now I want to highlight the maximum value.
[y x] = max(a);
hold on; % hold the plot for other curves
plot(x,y,'o','MarkerSize',10);
1 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graph and Network Algorithms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!