How to draw a vector 1x91 double

조회 수: 5 (최근 30일)
Andrea Cesaro
Andrea Cesaro 2021년 3월 23일
댓글: Andrea Cesaro 2021년 3월 23일
How can i draw a vector 1x91 that it depends on a coordinate q. I mean that I must draw this vector in a graph where the vector moves with the 91 values of the q, that is one value of q, one value of the vector 1x1.
  댓글 수: 2
Walter Roberson
Walter Roberson 2021년 3월 23일
plot(q, vector) ?
Andrea Cesaro
Andrea Cesaro 2021년 3월 23일
Yes, but in this way I find a curve and not the vector moves

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

채택된 답변

KSSV
KSSV 2021년 3월 23일
vec = rand(1,91) ; % dummy data
q = 1:length(vec) ;
plot(q,vec)
  댓글 수: 1
Andrea Cesaro
Andrea Cesaro 2021년 3월 23일
Ok this is the standar representation of a vector, my problem is most difficult because I must represent this vector in a cartesian graph (x,y) and it has to move in this graph as a function of q

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by