How to plot several vectors from origin?
조회 수: 17 (최근 30일)
이전 댓글 표시
I would like to plot several vectors from the origin outwards. I only have the (x,y) value for each point I would like the line to go to. How am I to code for this!?
댓글 수: 0
답변 (1개)
Wayne King
2011년 11월 13일
Hi, see the reference page for quiver
u = zeros(2,1);
v = zeros(2,1);
x = randn(2,1);
y = randn(2,1);
quiver(u,v,x,y);
댓글 수: 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!