Adding a point on a quiver graph.

6 ビュー (過去 30 日間)
Alice K
Alice K 2022 年 7 月 1 日
編集済み: Cris LaPierre 2022 年 7 月 2 日
Hi All,
I have a graph like this, how would I go about adding a point of this grid. Is this something that is a possible thing to do?
Thanks
  2 件のコメント
Adam Danz
Adam Danz 2022 年 7 月 1 日
What is "adding a point of the grid"?
Do you mean you'd like to add another quiver arrow? Do you want to add a point marker to the plot? What grid?
Alice K
Alice K 2022 年 7 月 1 日
Sorry I mean adding a point marker to plot. Very new to MATLAB still learning what everything is called.
I have a point that i would like to add but I don't know how.

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

採用された回答

Cris LaPierre
Cris LaPierre 2022 年 7 月 1 日
編集済み: Cris LaPierre 2022 年 7 月 2 日
You would just use an additional plot command to add the point(s) you want with the desired marker. For example
load('wind','x','y','u','v')
X = x(11:22,11:22,1);
Y = y(11:22,11:22,1);
U = u(11:22,11:22,1);
V = v(11:22,11:22,1);
quiver(X,Y,U,V)
axis equal
hold on
plot(X(5,5),Y(8,3),'rx')
hold off
  1 件のコメント
Alice K
Alice K 2022 年 7 月 2 日
Amazing thank you, it works

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeVector Fields についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by