Matlab doesn't show imaginary part of complex numbers for me!
4 views (last 30 days)
Show older comments
Mohammad hossein Naserimanesh
on 17 Feb 2022
Commented: Jan
on 17 Feb 2022
i'm new to matlab and whenever i try to display a complex number in matlab, it doesn't show the imaginary part of the complex number! what should i do with this issue? you could see the problem in the following picture:

0 Comments
Accepted Answer
More Answers (1)
Jan
on 17 Feb 2022
Do you see the 2 trailing zeros? This looks like the "bank" format:
format long g
pi + 2i
format bank
pi + 2i
Solution: Do not use the "bank" format. See: doc format
0 Comments
See Also
Categories
Find more on Filter Banks 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!