Eingeben von Befehlen
Wenn Sie in MATLAB arbeiten, geben Sie Befehle ein, die Variablen erstellen und Funktionen aufrufen. Eine Einführung finden Sie unter Enter Statements in Command Window.
Funktionen
ans | Most recent answer |
clc | Löschen der Inhalte des Befehlsfensters |
diary | Log Command Window text to file |
format | Festlegen des Ausgabe-Anzeigeformats |
home | Send cursor home |
iskeyword | Determine if input is MATLAB keyword |
more | Control paged output in Command Window |
commandwindow | Enter statements at the command line |
commandhistory | View previously run statements |
Objekte
DisplayFormatOptions | Output display format in Command Window (Seit R2021a) |
Themen
- Enter Statements in Command Window
Enter individual statements in the Command Window while working in MATLAB.
- Format Output
Format the output display in the Command Window and the Live Editor.
- Aufrufen von Funktionen
MATLAB stellt zahlreiche Funktionen zur Ausführung rechnergestützter Aufgaben zur Verfügung. Zum Aufrufen einer Funktion schließen Sie ihre Eingabeargumente in Klammern ein.
- Stoppen der Ausführung
Sie können die Ausführung eines MATLAB-Befehls stoppen.
- Rerun Favorite Commands
A MATLAB favorite command is an easy way to run a group of MATLAB commands that you use regularly.
- Write to a Diary File
Use the
diary
function to keep an activity log of your MATLAB session. - Find Text in Command Window or History
Search text currently in the Command Window or Command History.
- Modify Command Window Settings
Specify appearance and behavior of the Command Window and its output.
- Modify Command History Settings
Specify how often to save statements to the Command History and the types of statements to exclude.
- Modify Keyboard Settings
Settings for delimiter matching in the Command Window, Editor, and Live Editor.
Fehlersuche
Resolve Error: Unrecognized Function or Variable
Troubleshoot error message related to unrecognized function or variable.