how to implement Ode15s with option (odeset) in simulink
7 次查看(过去 30 天)
显示 更早的评论
using ode15s with option which usese event to terminate the solver in simulink gives error :
An error occurred while running the simulation and the simulation was terminated
Caused by:
- The first input to exist must be a string scalar or character vector.
my code in simulink function is :
options = odeset('Events',[value_ejection,isterminal_ejection,direction_ejection]);
dvdt_ejection = [dve_lvdt ; dve_rvdt ;dve_pudt ; dve_padt; dve_aodt ; dve_vcdt ; dQe_avdt; dQe_pvdt; dQe_mtdt ; dQe_tcdt];
[t_e,v_e,TE_e,VE_e] = ode15s(dvdt_ejection,tspan,v0,options);
0 个评论
回答(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!