Finite difference problem showing NaN value

1 回表示 (過去 30 日間)
Kevin Isakayoga
Kevin Isakayoga 2020 年 9 月 25 日
編集済み: Kevin Isakayoga 2020 年 10 月 19 日


Dana 2020 年 9 月 25 日
編集済み: Dana 2020 年 9 月 25 日
When M>=2, in the last line of your code,
because rt_inc(M+1)-rt_inc(M)=0 and Sr(M)=0, this becomes 0/0, which is not defined and produces a NaN in Matlab.

その他の回答 (0 件)


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

Community Treasure Hunt

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

Start Hunting!

Translated by