L1-Introduction To MatLab
L1-Introduction To MatLab
What is MATLAB?
• Stands for MATrix LABoratory
• MATLAB is widely used in all areas of applied mathematics, in
education and research
• MATLAB is a program for doing numerical computation. The software
is built up around vectors and matrices
• It was originally designed for solving linear algebra type problems
using matrices.
• MATLAB is also a great tool for differential equations and for
numerical integration
What is MATLAB?
• MATLAB is a high-performance language for technical computing.
• It integrates computation, visualization, and programming in an easy-
to-use environment where problems and solutions are expressed in
familiar mathematical notation.
• MATLAB is an interactive system whose basic data element is an array.
• This allows you to solve many technical computing problems,
especially those with matrix and vector formulations, in a fraction of
the time
Why MATLAB
• Easy to learn and simple to use
• Very good tool for the manipulation of matrices
• Scientific programming environment
• Interpreted language
• Great visualisation capabilities
Typical uses of MATLAB include:
• Math and computation
• Algorithm development
• Modeling, simulation, and prototyping
• Data analysis, exploration, and visualization
• Scientific and engineering graphics
• It contains functions for 2-D and 3-D graphics and animation
• Signal processing
• Optimization
• Application development, including Graphical User Interface building
MATLAB functions
MATLAB provides functions that operate on
• Integer
• Real numbers
• Complex numbers
• Vectors
• Matrices
• Structures
MatLab Add-on toolboxes
• The toolboxes are family of application-specific solutions
• MatLab also has Add-on toolboxes for
• Image processing
• Signal Processing
• Optimization
• Genetic Algorithms
• But these toolboxes are on payment
MATLAB paradigm
• MATLAB is an interactive environment
• Commands are interpreted one line at a time
• Commands may be scripted to create your own functions or procedures
• Variables are created when they are used
• Variables are typed, but variable names may be reused for different
types
MATLAB paradigm
• Basic data structure is the matrix
• Matrix dimensions are set dynamically
• Operations on matrices are applied to all elements of a matrix at once
• Removes the need for looping over elements one by one!
• Makes for fast & efficient programs