MATLAB: (0.341/(0.​2+1j*k)*(e​xp^1j*k*t)​; how to write a plot

plot

(0.341/(0.2+1j*k)*(exp^1j*k*t);

Best Answer

F = @(k, t) 0.341./(0.2+1j*k).*(exp(1j*k.*t));
subplot(1,2,1)
fsurf(@(x,y) real(F(x,y)), [-5 5 -6 6])
title('real part')
subplot(1,2,2)
fsurf(@(x,y) imag(F(x,y)), [-5 5 -6 6])
title('imaginary part')
Related Question