how to draw vector function?

3 vues (au cours des 30 derniers jours)
deniz can elçi
deniz can elçi le 12 Nov 2015
Commenté : deniz can elçi le 12 Nov 2015
I want to plot a vector function in 3d, with one variable.
x = 2*sin(t)
y = 4*cos(t)
z = t
is my vector function. How can i make it on an easy way?

Réponse acceptée

Walter Roberson
Walter Roberson le 12 Nov 2015
Modifié(e) : Walter Roberson le 12 Nov 2015
t = linspace(-10*pi, 10*pi); %define the range you are plotting over
x = 2*sin(t);
y = 4*cos(t);
z = t;
plot3(x, y, z);
axis equal
  1 commentaire
deniz can elçi
deniz can elçi le 12 Nov 2015
thank you very much.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by