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

 採用された回答

David Sanchez
David Sanchez 2013 年 9 月 25 日

0 投票

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

2 件のコメント

Youssef  Khmou
Youssef Khmou 2013 年 9 月 25 日
Good answer,
maryam
maryam 2013 年 9 月 26 日
It really helps. thank you very much

サインインしてコメントする。

その他の回答 (2 件)

Youssef  Khmou
Youssef Khmou 2013 年 9 月 25 日
編集済み: Youssef Khmou 2013 年 9 月 25 日

1 投票

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 件のコメント

maryam
maryam 2013 年 9 月 26 日
tnx for ur answer,but i dont know the xy coordinates,just a figure.

サインインしてコメントする。

Harsh
Harsh 2021 年 10 月 18 日

1 投票

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

カテゴリ

ヘルプ センター および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

タグ

質問済み:

2013 年 9 月 25 日

回答済み:

2021 年 10 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by