Skip to content

Environment and system

Interpreter and session control — tic/toc, clc, exit, input, and friends.

FunctionWhat it does
cdChange the current working directory.
clcClear the command-window display.
clearRemove items from the workspace.
copyfileCopy a file to a new location.
deleteDelete files (or graph objects).
dirList files in a directory.
enableEnable or disable a named interpreter feature.
existCheck whether a name exists in the workspace, on disk, or as a built-in.
exitExit the MathJet interpreter / application.
homeMove the cursor to the top of the command window.
iImaginary unit (alias for 1i); also available as I, j, J.
intmaxMaximum value of an integer type.
intminMinimum value of an integer type.
jImaginary unit, engineering notation; aliases i, I, J.
lfInsert a line feed (newline) in command-window output.
mkdirCreate a directory.
movefileMove (rename) a file or directory.
pausePause execution for a duration or until a key is pressed.
piMathematical constant π.
pwdPrint the current working directory.
rmdirRemove a directory.
runExecute a script file by path.
sdvtSet or display the default value type (precision).
sizemaxMaximum array size supported by MathJet.
tabulateTabular display of variable info.
typeNumeric code identifying the type of a value.
whoList names of variables in the workspace.
whosList variables in the workspace with detailed info.