Adding a point on a quiver graph.
조회 수: 19 (최근 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!