This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Convert an ode system to vectorfield notation

MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.


numeric::odeToVectorField(IVP, fields)


numeric::odeToVectorField and numeric::ode2vectorfield are equivalent. For details and examples, see numeric::ode2vectorfield.



The initial value problem: a list or a set of equations involving univariate function calls y1(t), y2(t) etc. and derivates , , …, , etc. The differential equations must be quasi-linear: the highest derivative of each of the dependent functions y1(t), y2(t) etc. must enter the equations linearly. IVP must also contain corresponding initial conditions specified by linear equations in the expressions y1(t0), , …, y2(t0), etc. Alternatively, arithmetical expressions may be specified which are interpreted as equations with vanishing right hand side.


The vector of the dynamical system equivalent to IVP: a list of symbolic function calls such as [y_1(t), y_1'(t), dots, y_2(t), y_2'(t), dots] representing the unknown fields to be solved for.

Return Values

Sequence f, t0, Y0. These data represent the dynamical system with the initial condition Y(t0) = Y0 equivalent to IVP. The vectorfield f: is a procedure, t0 is a numerical expression representing the initial ‘time’, and Y0 is a list of numerical expressions representing the components of the initial vector Y0.

Was this topic helpful?