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!
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!