Pointer on the graph.
显示 更早的评论
Hi everyone. There is 1x100 array. Is there any function that can show me (for example with pointer or another color) on the graph all points that higher 100?
1 个评论
Sumit Tandon
2012-7-25
One simple approach could be to use a combination of thresholding and logical indexing to identify these points and plot them. Example:
x = randi(150,[1,100]);
z = x;
z(x<100) = NaN;
hold on
plot(x)
plot(z,'*r')
hold off
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 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!