display a single (x, y)

5 Ansichten (letzte 30 Tage)
Rafael Espírito Santo
Rafael Espírito Santo am 11 Apr. 2019
Kommentiert: Star Strider am 15 Apr. 2019
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.

Antworten (1)

Star Strider
Star Strider am 11 Apr. 2019
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 Kommentare
Rafael Espírito Santo
Rafael Espírito Santo am 15 Apr. 2019
It´s work Star Strider.
Thank you very much indeed.
Star Strider
Star Strider am 15 Apr. 2019
My pleasure.
If my Answer helped you solve your problem, please Accept it!

Melden Sie sich an, um zu kommentieren.

Produkte


Version

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by