How to plot a vector?

26 ビュー (過去 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 Center および File ExchangeVector Fields についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by