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 if input is MATLAB keyword
moreControl paged output in Command Window
commandwindowEnter statements at the command line
commandhistoryView previously run statements

Objects

DisplayFormatOptionsOutput display format in Command Window (Since R2021a)

Topics

Troubleshooting

Resolve Error: Unrecognized Function or Variable

Troubleshoot error message related to unrecognized function or variable.