Effacer les filtres
Effacer les filtres

Can I plot 3 variables in 2d figure?

1 vue (au cours des 30 derniers jours)
John
John le 13 Avr 2013
hello, the problem is that I have 3 variables, velocity(v), acceleration (a), and speed (s) -speed is scalar, velocity is vector. SO i need to plot them on 2d figure. is that possible in matlab? I try this but don't know how to finish
k=0;
v=... (vector of 1 by 10, -ve and +ve)
s=abs(v);
for t=0:0.289:2.9
k=k+1;
a(k)=v(k)./t;
end
plot(v,a) % only 2d i dont know how to add s

Réponse acceptée

Image Analyst
Image Analyst le 13 Avr 2013
Use plot3() or scatter3().
  1 commentaire
John
John le 13 Avr 2013
thank you

Connectez-vous pour commenter.

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