plot am equation with complex number

15 visualizaciones (últimos 30 días)
DebiPrasad
DebiPrasad el 4 de Jul. de 2015
Respondida: Image Analyst el 4 de Jul. de 2015
Hi All; I want to plot an equation: Y=2*exp(-ky)*exp(-iky); Can anyone help me with this!

Respuesta aceptada

Image Analyst
Image Analyst el 4 de Jul. de 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;

Más respuestas (0)

Categorías

Más información sobre Mathematics en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by