필터 지우기
필터 지우기

Marking highlighted data points with text on a scatter plot

조회 수: 3 (최근 30일)
Matt Rulli
Matt Rulli 2018년 4월 8일
댓글: Steven Lord 2018년 4월 8일
After highlighting data points on a scatter plot, how do I apply the text function to include the x values over the points?
scatter(range,ratsmask,'fill','red')
range is the domain of values, and ratsmask is a logical mask identifying which of those values meets a specific condition. The plot is done, but how do I display the x index as text above the point.
text(range,ratsmask,'????')
Any help is appreciated!

답변 (1개)

Steven Lord
Steven Lord 2018년 4월 8일
Use the text function.

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by