Error with ODE solver for Van der pol equation
1 回表示 (過去 30 日間)
古いコメントを表示
Desislava Petkova
2021 年 12 月 6 日
コメント済み: Desislava Petkova
2021 年 12 月 6 日
Hi All,
I am getting the below error when i try to code the VDP equation and then solve it with ode45. I am pretty new to Matlab, so it might be something obvious that just escapes my eyes. I tried searching for answers, but without success.
Equation is (δ^2 x)/(δt^2 )-μ*(1-x^2 ) *δx/δt+x=0 where time span is 0 to 25, m=1 and x(0)=0 and x'(0)=2.5
Any help/guideline will be appreciated.

0 件のコメント
採用された回答
Walter Roberson
2021 年 12 月 6 日
Your function receives Y but never uses it, and needs x but does not have a source for x.
The simplest fix would be to change the function header to use the variable x instead of Y
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Ordinary Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!