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!