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, seeEnter Statements in Command Window.

Functions

ans Most recent answer
clc Clear Command Window
diary Log Command Window text to file
format Set output display format
home Send cursor home
iskeyword Determine whether input isMATLABkeyword
more Control paged output in Command Window
commandwindow Select the Command Window
commandhistory Open Command History window

Objects

DisplayFormatOptions Output display format in Command Window

Topics

Troubleshooting

解决错误:未定义的函数或变量

Troubleshoot error message related to undefined function or variable.