how to implement Ode15s with option (odeset) in simulink
9 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Ordinary Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!