Plot vectors from the origin

228 vues (au cours des 30 derniers jours)
Chaim Feigen
Chaim Feigen le 18 Déc 2019
Commenté : KRISH le 13 Sep 2025
I am learning matlab and trying to plot vectors. I defined V=[3;4] to represent 3x^+4y^ and attempt to display using plot(V) hoping to see a vector from origin to (3,4) but instead the graph shows a vector from (1,3) to (2,4). Is it a problem with my plotting settings or am I not using the correct script?
  1 commentaire
KRISH
KRISH le 13 Sep 2025

What is plot vectot?

Connectez-vous pour commenter.

Réponse acceptée

Adam Danz
Adam Danz le 18 Déc 2019
Modifié(e) : Adam Danz le 18 Déc 2019
plot([0 3], [0,4])
% x1 x2, y1 y2
% or
quiver(0, 0, 3, 4)
% x1 y1 x2 y2

Plus de réponses (0)

Catégories

En savoir plus sur Line Plots 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