plot am equation with complex number

2 次查看(过去 30 天)
Hi All; I want to plot an equation: Y=2*exp(-ky)*exp(-iky); Can anyone help me with this!

采纳的回答

Image Analyst
Image Analyst 2015-7-4
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 个)

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by