How to draw a vector 1x91 double

2 vues (au cours des 30 derniers jours)
Andrea Cesaro
Andrea Cesaro le 23 Mar 2021
Commenté : Andrea Cesaro le 23 Mar 2021
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 commentaires
Walter Roberson
Walter Roberson le 23 Mar 2021
plot(q, vector) ?
Andrea Cesaro
Andrea Cesaro le 23 Mar 2021
Yes, but in this way I find a curve and not the vector moves

Connectez-vous pour commenter.

Réponse acceptée

KSSV
KSSV le 23 Mar 2021
vec = rand(1,91) ; % dummy data
q = 1:length(vec) ;
plot(q,vec)
  1 commentaire
Andrea Cesaro
Andrea Cesaro le 23 Mar 2021
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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D 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