Entering Commands
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 Command Window 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 |
Topics
Enter Statements in Command Window
Enter individual statements in the Command Window while working in MATLAB.
- Continue Long Statements on Multiple Lines
- Calling Functions
- Find Functions to Use
- Check Syntax as You Type
- Variable Names
- Case and Space Sensitivity
- Command vs. Function Syntax
Format the output display in the Command Window and the Live Editor.
MATLAB是一个最喜欢的命令easy way to run a group of MATLAB commands that you use regularly.
To keep an activity log of your MATLAB session, use thediary
function.
Stop the execution of a MATLAB command.
Find Text in Command Window or History
Search text currently in the Command Window or Command History Window.
Set Command History Preferences
Specify how often to save automatically the history file and the types of statements to exclude.
Set Command Window Preferences
Specify appearance of Command Window and its output.
Settings for suggestions and completions, function hints, and delimiter matching.
Troubleshooting
Common Errors When Calling Functions
Troubleshoot error message related to calling functions.