How to plot a vector?

조회 수: 19 (최근 30일)
rob starn
rob starn 2022년 3월 2일
답변: KSSV 2022년 3월 2일
How can I plot a vector that starts at the origin? Say I want to plot [1 1]. How can I make a plot that has a line that goes 1 in the x direction and 1 in the y direction and starts at the origin?

답변 (1개)

KSSV
KSSV 2022년 3월 2일
Read about quiver
x = 0 ; y = 0;
u = 0; v = 0 ;
quiver(x,y,u,v)

카테고리

Help CenterFile Exchange에서 Vector Fields에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by