Professional Documents
Culture Documents
Matlab Arabic
Matlab Arabic
MatLab?
" #$ % *)( ' + ,- . !
'8 .% 45 0 !( 1 1 2!
+ ''5 %= .<" ; ! :8 9
.. @ ?"
:! 4 MatLab 45!B +C!
Math and computation
%
Algorithm development
Data acquisition
Modeling, simulation, and _`
#
prototyping
Data analysis, 0$ d-!B 1
exploration, and visualization
Scientific and engineering 0$ B'# B
graphics
i$! B!' B ` #
Application development, including graphical '5
user interface building
:
5!B4 ` q m B MatLab q9d '#8
:!
"! #
$ :
!" #
$ :
:
q' m 'l` 5!B4 !~ 52d +8
5 2 % 'l 2 0"~ 5? s
`" 5 `undock
15 s "` !~ 15!B ` :80
? +5 +=s =8 " 1` "! +=s
)View -> dock (window name
= .ly!~ 15!B
) i MatLab + ,-5 ~'
MatLab q#-'$ 5!By" + % "! MatLab
Help.)l +Help
!" #
$ :
MatLab
('
:
!" #
$ :
:
q#-! ? 5 Whos ! 9 ` 2 5
15
2s ? Command Window
, &%:5
! !i0 . !- xB!9C0 x .
!~ :8 =" Enter
!" #
$ :
!" #
$ :
# #
2J&
"! #
$ :
! &#
2J:
(5 is~ '` $l MatLab 2 is :
(5!'$0 $ k ,:
]>> D = [1 2 3; 4 5 6; 7 8 9
= D
1 2 3
4 5 6
7 8 9
>> P = pascal(3)
P =
1 1 1
1 2 3
1 3 6
>> M= magic(3)
M =
8 1 6
3 5 7
4 9 2
>> z= zeros(2, 3)
z =
0 0 0
0 0 0
>> o = ones(2, 4)
o =
1 1 1 1
1 1 1 1
>>
:#
2J& K'- L.M (&'
!k 15! 15 MatLab iB 0
:! ,? ` B ,~
>> Sum = D + P
"! #
$ :
10
>> Sub = P - D
>> D = D + 2
>> P2 = P * 2
>> Mult1 = P * D
>> Mult2 = P .* D
>> M
= M
8 1 6
3 5 7
4 9 2
>> MM = M ^ 2
!" #
$ :
11
MM =
91 67 67
67 91 67
67 67 91
>> M2 = M .^ 2
M2 =
64 1 36
9 25 49
16 81 4
>>
~0 2 ~ % 2#5M ^ 2
.. ~0 2 ~ 2 #8 1 % 2#5M .^ 2
Transpose#
2J&
M
%PQ
>> M'
ans =
8 3 4
1 5 9
6 7 2
Inverse#
2J&
R(
%PQ
>> inv(M)
ans =
0.1472 -0.1444 0.0639
"! #
$ :
12
MatLab
' ':
!5 :8~ 1, ,
' MatLab 2~
!.5 15
!" #
$ :
13
50 ! .!:2
]>> x = [1 3 -15 -2 9
= x
1 3 -15 -2 9
_1,! q
]>> Z = [1 0 0 0 -2
= Z
1 0 0 0 -2
. &W" , M M
&W X-:
l
0 2- ,
' ? y, s=3 l '#8 x
+-5!B polyval
$' +:);#
!" #
$ :
14
%P Z " , M:
_ 'i xl! s 9! 15 2 i5 -
0
(:[R
4 2#5!d 5 ,
' _ 5' #
poly2
\, &.W" , M:
C 5! +' , C5 25!B conv
i'deconv
!" #
$ :
15
? ;0 d. i
2l r 20, ( i 2, 2l$
+~< .! i).
'8 1, ?'8
!" #
$ :
16
' :
2
, #
MatLab
_.^
:,
# + 0 'l #8 2 " l 1 `
:8s ?:q_ +!is '` .
.1 2$
+ #5!B ~ "! Edit-> Clear
Command Window
.2 1C~ #5!B ~ ! x clc
Enter.
:
s ? _
+ !9 !y" ~5 x 2
` 15s= m0 ` '!B Workspace 15
!9 9! x
_ q#- . C5!B ? Whos
5 ! 9 ` 2 5 15
!'
s ` * 15 '.q
Z &` &, &(# #,
' . (&:
#:+!is #' C
.1 2$
+ #5!B ~ "! Clear <-Edit
Workspace
.2 1C~ #5!B ~ ! clear
Enter. x
!" #
$ :
17
:,
^ P
M
-a^
File -> Print ? "!s
! 8$
File -> Print "!s= + i @
'8$
selection
File -> Page "!8$ + `# 2 x-
!
+ +- _page setup k q m Setup
~ * 1,
~ # 2 x-
! .y"
B l *
! _ 4 Header
.8$ # 5! fonts
:2
?.0 _ matlab :8 q8 y"
clear 1, Clear q_ case sensitive
. , 1$B :8
MatLab 2 ' B :8 + ,! - +-
.si# <~ # 1~
"! #
$ :
18
= C
7 9 11 13 15
>>
+-! ? ' <" (+~# +B :8
8 (. k ! 4 d y kC0 i0 )'#8 (...
0 ?.
>> D = [ 2 5 2 4 1 66 8 44 88 66 ...
]5 7 44 88 44 787 56 66 4
= D
Columns 1 through 12
2 5 2 4 1 66 8 44 88 66 5 7
Columns 13 through 19
44 88 44 787 56 66 4
>>
"y MatLab :8 15 ? ! 2 $!- 2s
?
~ m 2 History 'l ~)' +
_
~)' .# q#- .08 8'!B +_} ?
i_~# ''` +y" + q 9C!- :8
~! 1 :! :8 x :? _ ' -}
q
` :8 !! . .0
:8 '8 MatLab 2
$ 2s ? ! x help xB? '
B q m 15 !' 2 q4
` help siny,
!" #
$ :
19
:
0
MatLab
# % ,a
20
n =
71
>>
+ , 5!B y" ', y- if ` _" +-
elseif !
if expression1
statements1
elseif expression2
statements2
else
statements3
end
15~ 0 2! switch ` 5!B +-
switch '&
:5 9
switch switch_expr
case case_expr
statement,...,statement
case {case_expr1,case_expr2,case_expr3,...}
statement,...,statement
...
otherwise
statement,...,statement
End
:
$!" x!B ( _$5! ) 9! switch_expr
..!l
"! #
$ :
21
j=
"! #
$ :
22
j=
3
j=
4
>>
whiled' .2
d' 5 x i
! $ # -! -
i
2!# i
:5 9
while expression
statements
end
+ - n! .C
< '8 ; `' 0$_ : ,
d8 0" 100
>> n = 1;
while prod(1:n) < 1e100
n = n + 1;
end
>> n
"! #
$ :
23
= n
70
:
MatLab 9 ~ 9 2 Interpreted 1 !x
`!B
. $ }_~# 1$l_ 5!B
i
!- B 15 ;0$ ,~ 1C5!B 4
' @ MatLab +-.q
break :
!' _ ? =i - i _~# 8 !
x-
;0$
i` '#8` i !'".
continue:
i _ ? (l!-
iteration i
2'$ 2
!- !.. 2
!" #
$ :