ode23 - Makers of MATLAB and Simulink - MATLAB & Simulink
https://www.mathworks.com/help/matlab/ref/ode23.html[t,y,te,ye,ie] = ode23(odefun,tspan,y0,options) additionally finds where functions of (t,y), called event functions, are zero. In the output, te is the time of the event, ye is the solution at the time of the event, and ie is the index of the triggered event. For each event function, specify whether the integration is to terminate at a zero and whether the direction of the zero crossing matters.
matlab examples ODE23 45 - Auburn University
www.eng.auburn.edu › ~tplacek › coursesFirst create a MatLab function and name it fun1.m . function f=fun1(t,y) f=-t*y/sqrt(2-y^2); Now use MatLab functions ode23 and ode45 to solve the initial value problem numerically and then plot the numerical solutions y, respectively. In the MatLab window, type in the following commands line by line. >> [tv1 f1]=ode23('fun1',[0 5],1);