Matlab Report
Matlab Report
M
atlab is an abbrivation of matrix laboratory, it’s a programming
platform and high performance language for technical
computing . The first early version of MATLAB was completed
in the late 1970s
Matlab integrates computation, visualization and programming in an easy to use
environment where problems and solution are expressed in familiar
mathematical notation . typical uses include :
Algorithm development .
Data analysis, exploration, and visualization .
Scientific and engineering graphics Math .
Application development, including Graphical User Interface building .
Matlab system :
The MATLAB system consists of five main parts :
2. Matrix in matlab :
I. Arithmetic operation :
It allaows arithmetic operation on a matrix such as addition multiplication
subtraction
Example :
A=
4 7 3
4 2 7
8 7 2
4 2 1
>> a+10
Ans =
14 17 13
14 12 17
18 17 12
14 12 11
b=
5 6 4
3 2 5
>>sin(b)
Ans =
Example :
>>X=[6 7 3 2 ; 7 5 3 1 ]
X=
6 7 3 2
7 5 3 1
>>X’
Ans =
6 7
7 5
3 3
2 1
We can use other matrix like size , It gives the size in the form of rows
and columns.
3. Operators on MATLAB :
Matlab have a broad operators , I will mention them in this schedule :
operator purpose
Point (.) Decimal point
Comma(,) Separate statement and elements in a row
Semicolon(;) Separate columns and suppresses display
Bracket [] Enclosures array elemnets
Parentheses Encloses function argument and array operator
()
Colon : Generates regulary spaced elements
Assigment = Assigment operator
Some special variables includes : ANS = most recent answer , PI = the number
π
4. Graphics :
END