Adding a point on a quiver graph.
7 次查看(过去 30 天)
显示 更早的评论
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
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?
采纳的回答
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
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Vector Fields 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!