hi i have a matlab figure, and i'd like to highlight some important points on it, could anybody help me? tnx in advance

 Réponse acceptée

David Sanchez
David Sanchez le 25 Sep 2013

0 votes

Select the "Data Cursor" on the figure window and click on the point you want.
Hold "alt" to multiple selection.

2 commentaires

Youssef  Khmou
Youssef Khmou le 25 Sep 2013
Good answer,
maryam
maryam le 26 Sep 2013
It really helps. thank you very much

Connectez-vous pour commenter.

Plus de réponses (2)

Youssef  Khmou
Youssef Khmou le 25 Sep 2013
Modifié(e) : Youssef Khmou le 25 Sep 2013

1 vote

you have to know the xy coordinates of those points to mark them . suppose i have a graph Y(X) :
X=1:10;Y=randn(1,10);
plot(X,Y), hold on,
Marked=[X(2) Y(2); X(4) Y(4)];
plot(Marked(:,1),Marked(:,2),'o');

1 commentaire

maryam
maryam le 26 Sep 2013
tnx for ur answer,but i dont know the xy coordinates,just a figure.

Connectez-vous pour commenter.

Harsh
Harsh le 18 Oct 2021

1 vote

folowing is an example where i have highlited a point with red airstrike
function m = plot_cos(y, t)
plot(t,y,'b--')
hold on
[iminy,idy]=min(y);
plot(idy,iminy,'r*')
hold off
m=min(y);
end

Catégories

En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by