Documentation

This is machine translation

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

ode::mkODE

Builds a linear homogeneous ordinary differential equation from a list of coefficient functions

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.

Syntax

ode::mkODE(l, y, x)

Description

ode::mkODE(l, y, x) returns a linear homogeneous ordinary differential equation Ly in y(x) where the coefficients are the entries of the list l. The last element of the list l corresponds to the leading coefficients of Ly.

Examples

Example 1

We generate the linear ODE for y(x) with the coefficients -1, 4*x and 4*x^2 of y(x), y'(x) and y''(x), respectively:

ode::mkODE([-1, 4*x, 4*x^2], y, x)

Parameters

l

A list of coefficient functions.

y

The dependent variable of the resulting differential equation.

x

The independent variable of the resulting differential equation.

Return Values

Expression.

Was this topic helpful?