Using j for imaginary numbers
Show older comments
I tend to use i for imaginary numbers and not j. In confirming that MATLAB is happy to use either I typed
j
and got
ans = 0 + 1.0000i
so if I wanted to go back to my electrical engineering roots and use j, can I make MATLAB say
j
ans = 0 + 1.0000j
and
i
ans = 0 + 1.0000j
Accepted Answer
More Answers (1)
Wayne King
on 11 May 2012
I know this isn't a real answer, but it seemed a bit long for a comment. I'm guessing all you can do is display the result in that format
c = 1+1j*2;
sprintf('%d+%dj\n',real(c),imag(c))
1 Comment
Daniel Shub
on 13 May 2012
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!