What is MATLAB and its elements

MATLAB is “the language of technical computing” which perform matrix calculations. It stands for MATrix LABoratory.

Elements:

MATLAB mainly consists of four sub-windows i.e. command window, command history, current directory and workspaces.

Figure – Screen capture of MATLAB software showing basic elements.




COMMAND WINDOW:

It consists of “>>” and all the command is executed in this window.

Example:

  • >>clc %This command is used to clear the screen.
  • >>clear all %This command is used to clear the screen as well as to delete all the variables created.

WORKSPACE:

It displays all the variable which is created in the command window. Matrix ‘A’ is the example of variable.

Example:

  • A = [ 1 2 ; 3 4 ] | Variable A is a matrix of 2 rows and 2 columns.




COMMAND HISTORY:

It contains the list of commands typed in the command window. You can run that command directly by click on it.

Example:

  • A = [ 1 2 ; 3 4 ]

CURRENT DIRECTORY:

It shows the path of the folder in which current files are being saved.

Example:

  • rcecircle.m: rcecircle is the name of the file saved in MATLAB and ‘.m’ extension represents m-files. All the codes written in MATLAB is saved in this file.




Leave your query about Post-01 of Module-I in below mentioned comment box. You can also give your feedback about the post in the comment box. To get regular updates from INFO4EEE subscribe us with your email id and Like our page to get Facebook notifications.

Read Post-02 of Module-I: Where to write and save MATLAB program?

5 thoughts on “What is MATLAB and its elements”

Leave a Reply