MATLAB: Plot am equation with complex number complexexponential Hi All; I want to plot an equation: Y=2*exp(-ky)*exp(-iky); Can anyone help me with this! Best Answer 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; Related SolutionsMATLAB: Complex polynomials symbolic toolbox (MuPAD)syms t wexpr=exp(1i*t*w*2)*exp(1i*t*w*3);result = evalin(symengine,['simplify(' , char(expr),',exp)']); MATLAB: Complex eigenvalues "smallest" is not defined for complex numbers. "negative" is not defined for complex numbers either.You can compare real parts, or you can compare imaginary parts, or you can compare magnitudes.[vals, idx] = min(real(E));E(idx)or[vals, idx] = min(imag(E));E(idx)or[vals, idx] = min(abs(E));E(idx) Related QuestionComplex integral problemPlotting complex exponential function
Best Answer