how to implement Ode15s with option (odeset) in simulink
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Ordinary Differential Equations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!