How to solve these errors? I am new to MATLAB. Thank you in advance.

1 回表示 (過去 30 日間)
SWAPNAVA
SWAPNAVA 2023 年 1 月 13 日
回答済み: Walter Roberson 2023 年 1 月 13 日

回答 (1 件)

Walter Roberson
Walter Roberson 2023 年 1 月 13 日
You left out hundreds of lines of code that might be important.
I predict that DELAY_BFKB2 is a global variable that is not initialized as a cell.
I predict that you are trying to record intermediate results during the ode function calculation. That is seldom a good idea.
I also see from the code that you have conditional statements. Those make your calculations non-differentiable, which is a problem. The ode* routines require that the functions be twice differentiable or else the predictions are not valid.

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by