Only the real part of the complex number is displayed and not the imaginary part

1 回表示 (過去 30 日間)
Diana
Diana 2021 年 1 月 11 日
編集済み: Diana 2021 年 1 月 11 日
I'm facing this unusal problem. the output is saved as you can see in the workspace but its not being displayed in live editor so what is the problem.
update, though I didn't change anything, now the live ediotr displays only the real numbers just like the workspace.

回答 (1 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2021 年 1 月 11 日
編集済み: KALYAN ACHARJYA 2021 年 1 月 11 日
You have to run the code (Click on the green triangular button) to execute eig function.
  2 件のコメント
Diana
Diana 2021 年 1 月 11 日
I ran the code as you can see on the left hand, I do have the output, but its not being displayed anymore in live editor ... I mean I'm getting the answers but they are not being displayed, and if you evaluated them using the workspace you get the real number and not the imaginary ones
Diana
Diana 2021 年 1 月 11 日
you need also to change 6 to -6 to get the imaginary numbers as your output

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by