You are on page 1of 9

Student full name: Aimen hadjela

E-mail address : aimenhadjela3@gmail.com


Mobile number : 0672250860
Field : mechanical construction
Index :
>>-definition
>Matlab system
1-matlab command
2-matrix in matlab
3-operators on matlab
4- graphics
Definition :

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 .

The most basic MATLAB data structure is the matrix .

 Matlab system :
The MATLAB system consists of five main parts :

 The MATLAB language


 MATLAB working environment
 Graphics handler
 MATLAB mathematical library
 MATLAB application program interface (API)
1. Matlab command : Matlab command have 3 main command :
 Basic command :
 Clear : variable remove’s from the memory
 Exist: chckes existance variable
 Clc : command window clear
 Global : declares variable as global
 Type : displays the contents of a file

 Entermidate matlab commands :


 mathematical functions
 array related commands
 matrix related arithmetic commands
 matrix commands for linear related operation
 advanced matlab commands :
 countour
 polynominal related commands
 command for equation solving
 command solving the linear systeme of equation

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

II. Trigonometric Operations  :


In this, we can use all trigonometric operators like sin, cos, tan,
cosec, sec, cot, sin inverse, etc
Example :
>>b= [5 6 4 ; 3 2 8 ]

b=

5 6 4

3 2 5

>>sin(b)

Ans =

- 0.9589 - 0.2794 - 0.7568

0.1411 0.9093 0.9894

III. Trasnspose of matrix :


To find the transpose of the matrix a single quote we use ( ‘  ) :

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

You might also like