You are on page 1of 4

Lab Report

Subject Dynamics and Control(Lab)




Submitted By:
Samraiz Hameed
2011-BE-ME-68

Section: ME-03A








What Is MATLAB?
MATLAB is widely used in all areas of applied mathematics, in education and
research at universities, and in the industry. MATLAB stands for MATrix
LABoratory and the software is built up around vectors and matrices. This makes
the software particularly useful for linear algebra but MATLAB is also a great tool
for solving algebraic and differential equations and for numerical integration.
MATLAB has powerful graphic tools and can produce nice pictures in both 2D and
3D. It is also a programming language, and is one of the easiest programming
languages for writing mathematical programs. MATLAB also has some tool boxes
useful for signal processing, image processing, optimization, etc.
Uses:
Math and computation
Algorithm development
Modelling, simulation, and prototyping
Data analysis, exploration, and visualization
Scientific and engineering graphics
Application development, including Graphical User Interface building
Why Matlab:
Easy to do very rapid prototyping
Quick to learn, and good documentation
A good library of image processing functions
Excellent display capabilities
Widely used for teaching and research in universities and industry



Matlab Interface:

Matlab consists of five main portions
Folders
Command
Variables
History
Text Editor(M File)
M File:
In command window one command can be executed at a time while Matlab also
has a text editor in which complete program could be typed and then executed.
Variables:
Variable portion contain all the variables that have been initialized
History:
It contains history of all the commands that have been executed in command line
Command:
Command line is used to execute commands (one at a time)
Matlab Toolboxes:
Matlab contains different toolboxes for civil, mechanical, aeronautical and
electrical engineers in this course we will only study Simulink toolbox
Simulink Toolbox:
In Simulink, it is very straightforward to represent and then simulate a
mathematical model representing a physical system. Models are represented
graphically in Simulink as block diagrams. A wide array of blocks are available to
the user in provided libraries for representing various phenomena and models in
a range of formats. One of the primary advantages of employing Simulink (and
simulation in general) for the analysis of dynamic systems is that it allows us to
quickly analyze the response of complicated systems that may be prohibitively
difficult to analyze analytically. Simulink is able to numerically approximate the
solutions to mathematical models that we are unable to, or don't wish to, solve
"by hand."

You might also like