As soon as you hit โenterโ, the command you just typed is executed (well, mostly. It gets a bit more complicated once we get to programming but for but for now think of MATLAB as simply a fancy graphing calculator).
The semicolon (;) prevents the output of your command from being echoed to the command window. This may seem useless right now, but just trust me: youโll need this later.
The Command History window displays a log of statements that you ran in the current and previous MATLAB sessions, along with information as to when you ran that command. You can simply double click on a command in the history window and itโll get executed again. Or you can drag it over to the command window (in case you want to make edits, for example.) A colored mark precedes each statement that generated an error.
The Workspace window shows you all of the variables and other objects that are in use during your current session. We havenโt used any variables yet, but as soon as we do youโll see the value of this window. Whereas in C we had to use printf() statements to monitor the values of variables in your code, the Worskape window allows you to keep track of variables without any extra work required.
Go to the online help in MATLAB and try to search for an example named "teapot". If you find the example, try to open up the code in your MATLAB window. Can you even figure out how to run the code?
And finally, MATLAB comes with lots of demo code. Can you find a demo named โteapotโ? If so, open up the code in your MATLAB windows. Can you even figure out how to run the code?