MATLAB Command window is used to execute commands, invoke MATLAB scripts and functions, view the output of the commands etc. The window has a command prompt that starts with >>.
New installs would display a link ‘Getting Started‘ in the command window. Click on this link to learn more and view the Matlab documentation.
We can enter commands at the command prompt to execute them. We can even invoke the scripts in the command prompt window.
For Example, to know the product of 7 and 9, we can type at the command prompt:
>> 7 * 9 ans = 63 >>
Clear Command Window
To clear the command window type the ‘clc’ command.
By default Matlab displays up to four decimals. To view more digits we can use the ‘format long’ option.
>> pi ans = 3.1416 >> format long >> pi ans = 3.141592653589793
MATLAB Tutorials on this website can be found here:
To try MATLAB Software or to learn more about MATLAB,
MATLAB official website: