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 CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by