State Space ODE Solver

statespace(init, t1, t2, npoints, A, [B], [u]) Returns the solution to a system of linear, first-order ordinary differential equations of the following form:

Form of the ODE for the statespace solver

where

Note: This notation, in which x(t) represents a vector of unknowns for the independent variable t, differs from the notation used in the Help pages for the other ODE solvers, in which the letter x represents the independent variable and y(x) represents the vector of unknowns.

Arguments

Note: u is required if you provide the argument B.

statespace returns an (npoints + 1) × (n + 1) solution matrix, where n is the number of unknown states. The first column of the matrix contains the values of t at which the solutions are evaluated. These values are npoints + 1 evenly spaced numbers between t1 and t2. The remaining columns contain the values of the solutions x0, x1, ..., xn - 1 corresponding to the values of t in the first column.

QuickSheet - State Space Solver

Related Topics