Vous êtes sur la page 1sur 11

MATLAB

Assignment
Help
www.myassignmenthelp.net

Introduction
MATLAB(matrix laboratory) is a fourth generation high
level programming language and interactive environment
for numerical computation.
Developed by MathWorks.
It allows Matrix manipulations; plotting of function and
data and implementation of algorithms.
It has numerous built-in commands and math functions
will help you in mathematical calculations.

MATLAB Features
It is a high level language for numerical computations.
It also provides an interactive environment for iterative
exploration.
It provides tools for building applications
custom graphical interfaces
It provides functions for integrating MATLAB based algorithms
with external applications and languages such as C, Java, .NET and
Microsoft Excel.

Uses of MATLAB
MATLAB is widely used as a computational tool in
science and engineering encompassing the fields of
physics, chemistry, math and all engineering streams.
It is used in a range of applications including:
Signal Processing and Communications
Image and Video Processing
Control Systems
Test and Measurement
Computational Finance
Computational Biology

How To Install MATLAB


MathWorks provides the licensed product, a trial version and
a student version as well. You need to log into the site and
wait a little for their approval.
Once you get the download link, as I said, it is a matter of
few clicks.
After Installation:
You can launch MATLAB development IDE from the icon
created on your desktop. The main working window in
MATLAB is called the desktop. When you start MATLAB, the
desktop appears in its default layout.

First, let's create a simple vector with 9 elements called a.

BASIC MATRIX OPERATION- MATLAB


This example shows basic techniques and functions for working with matrices in the MATLAB language. Lets
create a simple vector with 9 elements called a.
a=[1 2 3 4 6 4 3 4 5]
Now, lets add 2 to each element of our vector, a, and store the new result in a new vector.
b=a+2
New vector, b = 3 4 4 6 8 6 5 6 7
Creating graph in MATLAB is as easy as one command.
plot(b)
grid on

MATLAB Advantages
MATLAB is an interpreted language for numerical
computation. It allows one to perform numerical
calculations, and visualize the results without the
need for complicated and time consuming
programming. MATLAB allows its users to
accurately solve problems, produce graphics easily
and produce code efficiently.

MATLAB Disadvantage
Because Matlab is an interpreted language, it can be
slow, and poor programming practices can make it
unacceptably slow.

Some Hints:
Looping is done with for command, the syntax is:
>>for i = first increment = last
commands
end
The default increment is one. For example,
>> for i=1:n
sum = sum + x(i)*y(i);
end

Hint 2:
Conditional statements are evaluated with the if, while and switch commands. The syntax for if is:
>> if expressions
commands
elseif expressions
commands
else
commands
end

MATLAB
QUERY
www.myasignmenthelp.net

Vous aimerez peut-être aussi