ODE method issue in matlab
显示 更早的评论
Dear all, I have a legacy simulation model written in Matlab using fixed step Euler integration. This model has 4 control inputs and 10 state variables. I am rewriting the same program in Matlab. I have switched to ODE23 method (ODE23 is a variable step size method). In order to validate the new implementation, i passed the 4 control inputs as a function of time to both models (One is fixed step, other is variable). I am not getting same results (I suspect that both the models do not receive same control inputs at a time t). I wish to know the following
1. Is there a way i can make ODE23 or any other ODE method fixed step in Matlab?
2. If not, then in order to validate my new implementation, how do i access time variable in ODE23 method and write a routine to pass on similar inputs at same integration time as that of earlier implementation. I had currently used time variable available in ODEFUN.
regards,
Tarun
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!