three dimension plotting...yea

1 vue (au cours des 30 derniers jours)
AngelsaAtWar
AngelsaAtWar le 5 Avr 2013
hi I have this code so far but keep on getting an error when trying to plot it in 3D. I want to plot the equation....exp(i*x)=cos(x)+ (j*sin(x));
code
t = 0:.1:2*pi;
v= exp(i*x)=cos(x)+ (j*sin(x));
plot3(real(v),imag(v),t)
xlabel('x:real(v)')
ylabel('y:imag(v)')
zlabel('t')
grid on
axis square

Réponse acceptée

the cyclist
the cyclist le 5 Avr 2013
Modifié(e) : the cyclist le 5 Avr 2013
Your equation has an odd mix of x and t. This works for me:
t = 0:.1:2*pi;
v = cos(t)+ (j*sin(t));
plot3(real(v),imag(v),t)
  1 commentaire
AngelsaAtWar
AngelsaAtWar le 5 Avr 2013
It worked thank ya...I guess i just needed to replace the x variable

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