My code is returning a complex array
Mostra commenti meno recenti
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 Commento
Torsten
il 3 Nov 2022
-.2j means -0.2*i where i is the imaginary unit (sqrt(-1)).
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Numeric Types in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

