My code is returning a complex array
Mostrar comentarios más antiguos
x = -10:1:10;
for j = -10:1:10
y(j+11) = power(2.72,-.2j);
end
plot(x,y);
%im trying to plot the function e^(-.2x) so im trying to create an array to plot
1 comentario
Torsten
el 3 de Nov. de 2022
-.2j means -0.2*i where i is the imaginary unit (sqrt(-1)).
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Numeric Types en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

