An Introduction To MATLAB

Leave a Comment
MATLAB

MATLAB (short for Matrix-Laboratory) is a software package designed specifically to perform scientific computations and visualizations. It was developed by MathWorks, first released in 1984. It is an Object-Oriented Language, and contains features such as classes, inheritance etc. Besides a large variety of default built-in functions, user-defined functions can also be included and used. MATLAB includes C and C++ Math libraries that support the development of stand-alone applications.

The basic data type in MATLAB is a matrix. Matrices are defined as arrays. A scalar in MATLAB is treated as a matrix of a single row and a single column. Single-row vectors and a single-column vectors are treated as horizontal and vertical vectors respectively. Variables and their types need not be declared, and can be directly initialized.


Major components of the MATLAB environment
Ø  Workspace: This is the collection of all the variables generated in the running MATLAB session.
Ø  Command Window: This is the main window of MATLAB and is opened as soon as MATLAB is invoked.
Ø  Command History: This window contains all the commands entered in the Command Window in the running MATLAB session.
Ø  Figure Window: This window is used to display all the graphic outputs in the MATLAB session.
Ø  Edit Window: This window is for creating, editing, saving and modifying programs in MATLAB.


Major types of files in MATLAB
Ø  M-Files: Data stored in these files is in ASCII text format with a .m extension to the filename.
Ø  MAT-Files: Data stored in these files is in binary data format with a .mat extension to the filename.
Ø  MEX-Files: These files allow the programmer to integrate FORTRAN or C programs into the MATLAB code.

   MATLAB is a flexible language which can be used for image processing. A new update for MATLAB is made available twice every year. It provides a healthy programming environment that is convenient to use and easy to understand. One can easily access the variables being used through the workspace. All in all, MATLAB is an easy to learn and convenient to use object oriented programming language that can be used for various purposes.



0 comments:

Post a Comment

Powered by Blogger.