display a single (x, y)

조회 수: 6 (최근 30일)
Rafael Espírito Santo
Rafael Espírito Santo 2019년 4월 11일
댓글: Star Strider 2019년 4월 15일
Hi everyone.
Does anyone knows how to display a single point (x, y), for instance (2.899, -3.677), on a curve plot?
It´s possible to display points on plotting curves using getCursorInf( ) method but I prefer using other approashs.

답변 (1개)

Star Strider
Star Strider 2019년 4월 11일
I would simply do:
figure
plot(curve_x, curve_y, '-b')
hold on
plot(2.899, -3.677, 'r+')
hold off
grid
That would plot the curve with a solid blue line, and the single point with a red plus sign.
  댓글 수: 4
Rafael Espírito Santo
Rafael Espírito Santo 2019년 4월 15일
It´s work Star Strider.
Thank you very much indeed.
Star Strider
Star Strider 2019년 4월 15일
My pleasure.
If my Answer helped you solve your problem, please Accept it!

댓글을 달려면 로그인하십시오.

카테고리

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

제품


릴리스

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by