How to plot a vector?

13 vues (au cours des 30 derniers jours)
rob starn
rob starn le 2 Mar 2022
Réponse apportée : KSSV le 2 Mar 2022
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?

Réponses (1)

KSSV
KSSV le 2 Mar 2022
Read about quiver
x = 0 ; y = 0;
u = 0; v = 0 ;
quiver(x,y,u,v)

Catégories

En savoir plus sur Vector Fields dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by