FUNCTION REFERENCE
odeprint
ODE output function that prints t and y after each step.
ODE output function that prints t and y after each step.
Syntax
status = odeprint(t, y, flag)Pass @odeprint or 'odeprint' as the OutputFcn option in odeset. Prints t
and y to the console at initialization and after each accepted step.
Example
opts = odeset('OutputFcn', @odeprint); [t, y] = ode45(@(t,y) -y, [0 0.2], 1, opts); numel(t) > 1 % 1Differences from MATLAB: none known.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.