Documentation

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.

id

Identity map

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

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?