id

Identity map

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

Syntax

id(x)
id(x1, x2, …)

Description

id(x) evaluates and returns x; id(x1, x2, ...) returns the evaluated arguments as an expression sequence; id() returns the void object null().

Examples

Example 1

id returns the evaluated arguments:

a := 2: id(a + 2)

id(a, b, 4 + 2)

id() returns null():

domtype(id())

delete a:

Example 2

id is useful when working with functional expressions:

f := 3*id + sin + 5*id^2 + exp@(-id^2):
f(x)

f'(x)

delete f:

Parameters

x, x1, x2, …

Arbitrary MuPAD® objects

Return Values

Sequence of the input parameters.

Was this topic helpful?