plot am equation with complex number
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
DebiPrasad
le 4 Juil 2015
Réponse apportée : Image Analyst
le 4 Juil 2015
Hi All; I want to plot an equation: Y=2*exp(-ky)*exp(-iky); Can anyone help me with this!
0 commentaires
Réponse acceptée
Image Analyst
le 4 Juil 2015
Is this what you want:
k = 2;
y = linspace(-3,3,500);
i = sqrt(-1);
Y=2*exp(-k*y).*exp(-i*k*y);
realy = real(Y);
imagy = imag(Y);
plot(realy, imagy, 'b*-');
grid on;
0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!