Matlab → Getting started
This chapter begins with basics of Matlab and how it is used for basic calculations. Here we will introduce command window in detail.
The first window that appears when we open Matlab is “Command Window”. It is the main window and it is used for simple calculations, and running and showing programs written in other windows; for example scripts and functions. You cannot save your commands or program in the command window to use them in the future.
When you start Matlab, the following screen appears. The window in the middle with sign fx >> is called “Command Window”.
Figure: Command Window, Matlab
Use Matlab as a Calculator
Figure: Basic Commands in Command Window
Type a command and press enter to execute the command. In the first example, we type and press Enter to execute the command. The Matlab shows the answer 5. In the second example, we type and press Enter. The Matlab shows the answer 13. Similarly, the following examples show some more arithmetic problems, Matlab commands, and their answers.
Some basic Arithmetic in the Command Window