Why is 6*i not a complex number in my program?
Ältere Kommentare anzeigen
I though i was for imaginary in MATLAB.
Akzeptierte Antwort
Weitere Antworten (1)
Anish
am 18 Jan. 2011
Looks like you might have a variable defined named "i" which is a real. If this is the case, then the "definition" of "i" as imaginary unit is overridden. For example:
i = 6;
disp(6*i)
Output:
36
See:
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!