How to draw a vector 1x91 double

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 Comments

plot(q, vector) ?
Yes, but in this way I find a curve and not the vector moves

Sign in to comment.

 Accepted Answer

vec = rand(1,91) ; % dummy data
q = 1:length(vec) ;
plot(q,vec)

1 Comment

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

Sign in to comment.

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Asked:

on 23 Mar 2021

Commented:

on 23 Mar 2021

Community Treasure Hunt

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

Start Hunting!