What is meaning of NaN+NaNi?

조회 수: 36(최근 30일)
Antony Aravind
Antony Aravind 2022년 7월 18일
답변: SlipperyGnome 2022년 7월 18일
I wrote and run a program, where the output resulted is "NaN+NaNi" . I need to know the meaning of "NaN+NaNi" and thus kindly guide me to correct it.

답변(1개)

SlipperyGnome
SlipperyGnome 2022년 7월 18일
MATLAB represents values that are not real or complex numbers with a special value called NaN which means 'Not a Number'. This means you are probably evaluating expressions like 0/0 or inf/inf or so on.
Similarly, when you have a complex number, the displayed values are real numbers + the complex part + 'i'. There must be some invalid expressions usage in the complex part of your program too.
Hope this helps!

범주

Find more on File Operations 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!

Translated by