필터 지우기
필터 지우기

How does MATLAB work when I have a structure and 'options' being set from inside and odesolver?

조회 수: 2 (최근 30일)
Suppose I have a structure k with these elements range, init and options. I noticed that since I put k inside ode45 I have an error when it calls @simp. This error is because inside k I have options. I know it because the program works well when I use options outside of k and delete k.options. So I guess it's something to do with options is being called twice or more. I forgot to mention that I called Events from inside options only.
[x,y] = ode45(@simp,k.range,k.init,k.options,k)

답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by