plot am equation with complex number

2 ビュー (過去 30 日間)
DebiPrasad
DebiPrasad 2015 年 7 月 4 日
回答済み: Image Analyst 2015 年 7 月 4 日
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 Center および File ExchangeMathematics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by