reset

Re-initialize a session

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

reset()

Description

reset() re-initializes a MuPAD® session, so that the current session will behave like a freshly started MuPAD session.

reset deletes the values of all identifiers and resets the environment variables to their default values. Finally, the initialization files sysinit.mu and userinit.mu are read again.

reset is permitted only at interactive level. Within a procedure, an error occurs.

Examples

Example 1

reset deletes the values of all identifiers and resets environment variables to their default values:

a := 1: DIGITS := 5: reset(): a, DIGITS

Return Values

Void object null() of type DOM_NULL.

See Also

MuPAD Functions