Member of the ode class.
[t, y] = ode23tb(fun, times, y0)
Uses the Backward Differentiation Formula (BDF) ODE solver to determine the y-values in an ODE system.
| Name | Description |
| fun | Specifies the name of the function that describes the ODE system. The function must have the following form: function dy = fun(times, y). fun is a string. |
| times | Specifies either the endpoints for the time span, such as [0 20], or the time points at which to approximate the y-values, such as 1:20. If you specify only the endpoints, LabVIEW returns the time points at which it evaluates the y-values. If you specify time points, LabVIEW approximates the y-values using third order accuracy. times must be strictly monotonic. times is a real, double-precision vector. |
| y0 | Specifies the y-value at the starting time. y0 is a real, double-precision vector. |
| Name | Description |
| t | Returns the time values at which LabVIEW evaluates the y-values. t is a real, double-precision vector. |
| y | Returns the y-values that LabVIEW approximates. y is a real, double-precision matrix. |
This function is not supported in the LabVIEW Run-Time Engine. Do not use this function in a stand-alone application or shared library.
% The lorenz function is defined by:
% function dy = lorenz(times, y)
% dy = zeros(3, 1);
% dy(1) = 10*(y(2)-y(1));
% dy(2) = 28*y(1)-y(2)-y(1)*y(3);
% dy(3) = y(1)*y(2)-8/3*y(3);
[t, y] = ode23tb('lorenz', [0, 5], [1; 1; 1])