Only the real part of the complex number is displayed
조회 수: 13 (최근 30일)
이전 댓글 표시
When I have a complex number as an output, Mtalab either doesn't display the number or only shows the real part. Any idea how can I fix that
댓글 수: 3
채택된 답변
Steven Lord
2021년 1월 13일
I believe you're using the bank display format (format bank) which does not show the imaginary parts of numbers. What would $4.56i represent?
A = [1 -2; -3 4]
format
sqrt(A) % shows imaginary part in default format, format short
format bank
sqrt(A) % shows in bank format
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Filter Banks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!