fp::unapply

Create a procedure from an expression

MuPAD® notebooks will be removed in a future release. 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

fp::unapply(e, <x, …>)

Description

fp::unapply views the expression e as a function in the indeterminates x,... and returns a procedure computing that function.

If no indeterminates are given, any indeterminates of e found by indets are used.

Examples

Example 1

Get the procedure computing sin(x)^2+cos(y)^2:

s := fp::unapply(sin(x)^2 + cos(y)^2, x, y)

Parameters

e

Expression

x

Identifier or indexed identifier

Return Values

Procedure.

Overloaded By

e

See Also

MuPAD Functions