fp::apply

Apply function to arguments

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

Syntax

fp::apply(f, <e, …>)

Description

fp::apply(f,a) returns f(a).

fp::apply applies the function f to the arguments given by e, ....

Environment Interactions

Same side effects as when calling f(e,...) directly.

Examples

Example 1

Apply the function f to x and y:

fp::apply(f, x, y)

Example 2

Apply the functions of the first list to the arguments given by the second list:

zip([sin, cos], [x, y], fp::apply)

Parameters

f

Function

e

Object used as argument

Return Values

Result of the function call f(e,...).

Was this topic helpful?