Main Content

Entering Commands

Build and run MATLAB® statements

While working in MATLAB, you issue commands that create variables and call functions. For an introduction, see Enter Statements in Command Window.

Functions

ansMost recent answer
clcClear Command Window
diaryLog Command Window text to file
formatSet output display format
homeSend cursor home
iskeywordDetermine whether input is MATLAB keyword
moreControl paged output in Command Window
commandwindowSelect the Command Window
commandhistoryOpen Command History window

Objects

DisplayFormatOptionsOutput display format in Command Window (Since R2021a)

Topics

Troubleshooting

Resolve Error: Undefined Function or Variable

Troubleshoot error message related to undefined function or variable.