Plot vectors from the origin

조회 수: 284 (최근 30일)
Chaim Feigen
Chaim Feigen 2019년 12월 18일
댓글: KRISH 2025년 9월 13일
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
KRISH
KRISH 2025년 9월 13일

What is plot vectot?

댓글을 달려면 로그인하십시오.

채택된 답변

Adam Danz
Adam Danz 2019년 12월 18일
편집: Adam Danz 2019년 12월 18일
plot([0 3], [0,4])
% x1 x2, y1 y2
% or
quiver(0, 0, 3, 4)
% x1 y1 x2 y2

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by