# دورة الماتلاب خطوة بخطوة

!
&amp;&amp;&amp; &amp;&amp;&amp;
2
&quot; # \$ %
&amp;&amp;&amp;&amp;'&amp;&amp;&amp;&amp; &amp;&amp;&amp;&amp;'&amp;&amp;&amp;&amp;( &amp;&amp;&amp;&amp; &amp;&amp;&amp;&amp;)* +
! , - '. / . 0 1
3445
6 7 &quot; 89
:
!( !; \$ &lt;
:
7
*
: =&gt;? @
6 7 D% 16 7 E
1 2F
F G 3F H !
D% 4H I G D% 5E;
(F 6H 'J 7D Plotting3 M N O )P \$ K7 L 8D PlottingQ F O N O )P \$ K7 L 9AB C
: =&gt;? 7/04/2006 )
U (1/04/2006 R E F ST @
AB C
6 7 E D%
16 7 E
1 2F H !
D% 3F
F G 4H I G D% 5E;
(F 6-
6 7 D% WV *
[! Y
@
H 7 E \ N \ !. H ! \$ % Z, * HV Y A X
T6 7 T
6 7
\ &lt; differentiation \` ' \ ( 6 7 E 0 B% ] N _A ^ H 7 E ( ] E H 7 E
!` ' HV
[ S; Algebraic Equations % EY HV
\. \$ % [ S; Integration
0 B% \ [ &gt; c d _\J
J
\J b
! a H &gt;Differential Equations
\$e! B
B%
B Partial fraction MeY B&lt; H !( \ \$ % _ MeY \` ' \ ( 6 7 E
\
6 7 E 0 B
E
)
* _ % ;F )
ST _ % ! /
! ] E; ] b
Mechanical Field, &lt; 7 &lt; @ Y
Control System, L&lt;.
K7* \N
HV Y 0 1
=
@ Y [ S; Automotive Industry, H B ( ^ Electronics H 7 &lt; P ; . [ S;
.
H E
N&lt; Aerospace and Defense, f Y R
( ji4 U %
hb G ' Nissan = B 7 b
H B ; 8 h b _[ &gt; 0 Y! ;g* )
6 7
F U Paper Model Based Design / F !( L J @ E ? h b
k . \$ K7
U
T ( Y
;e;; ;%Y8 (B
% @ % Model Based Design, T
) . ; 8X = B 7 ; #
Without MathWorks tools for Model-Based Design, Nissan would not have
become the first company to meet the CARB PZEV standard
CARB= California Air Resources Board
PZEV= Partial Zero Emission Vehicle
c
@
%
ST
L&lt; &lt; %
http://www.mathworks.com/company/use...ml?by=industry
d
/E
lEJ7
) 6 7 E ST \N L!
!( .!
1 . h.E^* 1
&lt;
0% B \$
0
. ( J
6 7 d C D%
\ k1 7N
D !; T @ F _= J 8 6 7 E d m \$ b
D !;
1
Y#
1 ] ( % #(
N;F Computer Science a . \$ !( H ` % &gt; U T
. &lt; B&lt; 7
1
'7
Intel Hypercube organization T Hardware &amp;&amp;
J
OU ( H
d
n *
T A7* ; _
6 7 E \$F ; # MathWorks ; 8 U @ 7P \$ % =* \EbArdent Computer
.
! 6 7 @ FDC
D !;
\ k1
.
6 7 c
0`
( B A7* ; Mathworks ; # d C
T
opqr \$ ( MIT
1
a . \$ !(
&lt;
+ % !&lt; !( \^ ) k 1
opr4 \$ (
'7
1
M.S.E.E
8 !( \^ ) A7* ;
\
k1
...L!&lt; B%
L !B
J \n * A !( . 7
_ !
S L ! = &lt;% =* _0 Y! *
= &lt;% =* : @m
.\$ P % 0 \1*
_D .
b(
a
! ]E 6 7 E
!( \$ B
J _
: .
fS _
L ! ] * E7 7
% ST
\1*
6 7 E
U/
L
_s E
R
)9 n(F H Et ] E a
*
] E _\$ Bb* U
6 7 L! LB L
ST D! %
2Control System Using the Matlab
\$
? L&lt;.
K7*3Signal Application Using Matlab
\$
?
8F H E 4Digital Signal Processing Using Matlab
\$
?
b
8P H ! (5Numerical Application Using Matlab
\$
? E%
` % H % K 6Image Processing Applications Using Matlab
\$
? J Y
H E 7Radio Frequency Applications Using Matlab
\$
? %
H 1 H E 8Mechanical Applications Using Matlab
\$
? &lt; 7 &lt; H E 9Radar Applications Using Matlab
\$
?
H E 10Robots Applications Using Matlab
\$
? H
H E 11Electronics Applications Using Matlab
\$
? 7 &lt; P H E 12Semiconductors Applications Using Matlab
\$
? H ^
u E8* H E 13Automotive Applications Using
\$
? H B ( ^
B H E 14Matlab
Aerospace and Defense
\$
? f Y R
9 n' \$ !(
B H E 15Applications Using Matlab
Communication Applications Using Matlab
\$
? HV J P H E 16w U # ST @ &lt; U !(
% =* : @m * _\% v # =? \$ &lt; 7 U
;
T sE
R # \Eb uS *
V0`
O O[ T= &lt;
1;.
2\$
? L&lt;.
K7*3% &lt;
F uS x
] 1
% = : @m *
\$
hb = )
&quot; # 3445y4QyQo s
\$ *E
R `
ST
z E
G
!( / ' P
V _\$ &lt; 7 *
R E F
u%. L%
9e1 &quot; 8 L %1[ S; R E F
@ R B
B' P 9 n({ B % ) R E * \; @ * &quot; # L% L %2L
B' U !(
.6 7 E! s E
L '
( 1
U \J7 ) _
a
@
A) 8 L
aY%3E&lt; R ` @
\$
? ;.
; [ S;
L!
;\ .
`4!d&lt;7 &lt;
!d&lt;7 &lt;
T6
R ` @
6 7 E \ . 9 n({ &lt; % _
6 7 \ . 5.&quot; #!
a
\$ e P 0 _6 7 E &quot; 8
; # 9 n({ &lt; %6_ B' P @ ) | # \ % =* VU A !(
_A) 8 sE b R ` @ ) B' U n ! = ; =* ) 7.] EB &quot; # 9eY [ &gt; H B' U 0 u B' U 0` | # \$ % )
L
B' U } L &lt; % _ ^ \M
9 E ; # 3i ( L ; # \ %S Y 9 n({ EB 8. ~
J # D!
7 &lt;P f % h `
_ 7 &lt;P f %
!(
.[ &gt; F , bU &gt;U J A) 8 L % l `
`9, !
R ` H B' U R `
6 7 @ )L
B' U 9 n(F L %10U u B' U \ | # \$ %
R `
u B' U 0` n \$ b =* )
.!
R ` H B' U R `
9 n(F \ % V ) [ &gt; ,
R ` H B' U R `
H E!
H B' P \$ 11\ LB | # \$ %, ]
R `
u 0` n \$ b ) _
N; aEB
.
R ` H B' U R `
Uu
aEB 9 n(F \ % V ) [ &gt; ,
R ` H
R `
&lt;# H
\$ 12u \ LB | # \$ % _]
R `
u 0` n \$ b ) _
N;
.
R ` H
R `
U
%e &quot; 8 R ` H
* &lt; _ vP !( S (*
s
: @m *
=* 0
]) 8
B
_
% ; _6 7 E
^
6 7
: =&gt;?
!
0b
sE
;&gt;
U \J
V _9 E \Eb ] n%* _\$ &lt;
6 7 E
J
; # 0b
http://www.mathworks.com
H N% . [ S; _
6 7 E H ^P
.
6 7 E Z %e !Y7P I! (
w 0b
ST
University of Utah
http://www.math.utah.edu/lab/ms/matlab/matlab.html
6 7 E BE
%
Y 0b
%})
Indiana University
http://www.indiana.edu/~statmath/math/matlab/
6 7 @ ) %
.
Y 0b ] n%* \$ %
.6 7 E
&lt;
' U !(*
U \J7
s
) _ ( E U \&lt;# c
: @mB7
uST % Y L %: K)
Y
7
*
})
2 #
#
+, \$% &amp; -. / 0
3 8(, &quot;
3
/BC 9A&quot; / * #E&amp;
&lt;
,S TUV0
O1
:&quot; / * #
1
B71
\$% &amp; ! '&quot; ! ( ) * #
1 '7&amp;
;
4, 9
&lt;.=&gt;1 ? =@0 ! ( ) *
F G B &lt;.=&gt;1 ' 7 H&gt;
3 45
! &quot;
6
:0#
3 45
BA&quot; /BC D.&quot; 1 1 (
; J K LF
+ &amp;
&lt;.=&gt;1 M D.&quot; 1 N '( ) *
1 '7&amp;
; J K P52
45
:&quot;R #4 ? 3 D.&quot; 1 /BC 1 Q&gt; &gt;&amp;C :*.
4, 9
16
1B6 /BC 4,WF
&lt;
IB&quot;
D.&quot; 1
/BC N&gt;O 1 E N '(
6
M &quot;!(
4, 9
* 1
1+ ' P52 N&gt;O &quot; #P5 F&amp;&quot; @ 1 \$ 7 / 0 ? [ B 1+ ' P52 N&gt;O &quot;
D.&quot; 1
4, [
D.&quot; 1
;, =0 6 E N '(
Z 4@&gt;A
X
FG
&amp;
6 5F&amp;&quot;
3 M &quot; 45
: 0 ;45 &amp; P52
Y&gt; 0 1+ Z
&gt;' 1
&gt;O 1
&lt; \ \3 ]
#!+ ' /BC ^ _`a b &amp;\
#&lt; , O c &gt;(&gt;
c
1+ ' P52 _ d &quot;
cd #h
)A #
\$9 #
c
;Q 7=3
+ &amp;
gZ #
&lt;.=&gt;1 j 1 i
D.&quot; 1
Zc
4, 9
&lt; (5A&quot; Y Q 7=Y - &gt;* &gt;&amp;C D.&quot; 1
;_o
e
8
f
Y &gt;M _Y 1+ ' IB&quot;
@ &quot; 1d
!2
2 &lt; @Y -. I &amp;2
/BC &lt; @3 IB&quot; 1 &quot; ) *
1 '( 7
:Y
#&lt;
M 1 [ = 1+ ' P52
, =a !Z .k1
b 9&quot; , =m ( * I 7 &quot; #45 , G l*. \
A &amp; B # U&quot; _ @ 45 &amp; P52 n &quot; / ( :*.
Y
p
3 45 , G0 &amp;&amp;d1( .k1 #D.&quot; 1
4, 9
1+ Z
[O
H A1 !dA ! ( 1+ ' P52
: Y #h U K b &amp;* q 2 &amp; F=Y
%f + F=0
c V
; d c I( A B B Z s 45 &amp; _ d&quot; ) *
t(Y \ ' (&gt; &quot; I( A B B Z 45 &amp; _ d&quot; ) * !
12 _ 1+ Z &amp;(&gt; /' (
1+ Z
k 5 &amp; I 56 # FB O1 D.&quot; 1 &lt; FB c '&amp; I&amp;d1( ) *
; kd 2 s
3 45
=u # &amp;91
6 K ? 9&quot;m + \
&gt;*Y
2 B
5 &amp; _ d&quot;
r
r
#
1+ Z
(, t &lt; &gt;C 1
# 1+ ' IB&quot; N '&quot; ) *
(S BM m UB D.&quot; 1 !B &quot; I 56 #&lt; k(&gt;A
D t
v 7
;
j1M f \ \3 &lt; B1 ^ _`a N ? &amp; D.&quot; 1
3 ] /BC b &amp;\ 16 #@&gt; w3 jV k
4, 9
45
:Y#
1d #N d
=Y
&lt; B1 ] h 1 '
xyx 2 j1MB b 1 S
D.&quot; 1
j1M .C 5=W&quot;
2 N Z,Y 4, [
m jV D.&quot; 1 N ' \ y j1M &amp;1Z `0 .k1
A {B* 45 , G l*. \ #
@S 4 ' w 1 '&amp; !Z
4, 9 : Y # F\3
45 / 0 z2`0
3 45 {A [Y
3
4, 9
16 # + &amp;
(&gt; &quot; 45 }.sa !Z # / 0
&quot;&amp;
U &amp;1Z &amp; Y | F&amp;
1'
&quot; &amp; , G l*. \ #
3 45
d !Z # \ \3
V
3 45 4@ C l*. \
4, 9 : Y # 2 4&gt;(&gt;M
4, 9
4, 9
&gt;6W B 4, 9
: Y # ~ r .k1 #D.&quot; 1
:Y# e ~
:Y# H
&quot;
•
/BC
hrfS ,v 7
B1C 5=W&quot;
.k1 #h • f S , D t
B1C 5=W&quot;
.k1 #h € f S , 1 '
B1C 5=W&quot;
#i &quot; F1
*
&quot;
# \$ /BC TUt ?.= c S
52 /BC ? 9A cd1( #h • f w3 S , 5=W(
4, 9 : Y #
~ • .k1
W
J
K7* _sqrt
F
; s% v ( Lb fF
SY S *
SY S * L %
E N ' 1 c( &amp;C jV !
# 2&gt; P&gt;(
#M
;
z d ! #h ƒ f ( ‚
! &quot; #\$% &amp; #
c kd 2 s ## %&amp;
@ &quot; 16
c
QS
E N '
&amp; j 1 k _ d&quot; ) *
.C jV Y&gt; _Y c &gt; R # _ &amp;C jV D.&quot; 1
F
4, 9 l*R
6 _3 I ` #T' 1 Z =u {BM\ Y ) * #
4, 9 : Y # S ,
X
45
BdK I &amp; _ :*.&quot; 16 cd
jM ! &amp; ) *
S , 5=W&quot; ,3 + &amp;
4, 9
e
: Y #E N&gt;O 1
B=&gt;(
1 ' b A 5=W( ) A #b A
+ &amp; „( &quot; ! (
;c b * 1 Z 6 5=W&quot; ) * # 1&quot; { 0 &gt;Z BdK1 _ &quot; 16
, Ga N '( D.&quot; 1 _Y 2 # BdK I &amp;2 _ d&quot; M /BC &amp;B9* Y # 1 Z &amp;B=@Y 1B6 &amp; Y 2 #
BdK1
…J †@‡( E Y c * D d1
6 / 0 †@‡( 1 #
3 45
M &amp; I 56 B=&gt;1 1 '
4, 9 : Y #T
% dK ! &quot; .k j1M M &amp; ? =@0 B1C cd f , : c M &amp; I 56 B=&gt;1 1 ' Q F=Y ! (
M zB% &gt; Y B=&gt; 1 Z 6 &gt; h ' f .C jV \$( % cC hN&gt;O 1 P W( 5 F&amp; D.&quot; 1 N '(
p
&lt;.=&gt;1 b * jV \$( % cC # I ` N&gt;O 1 zB% `0 B=&gt;1 ! ' Y M &amp; , G0 ! ( h .k j1M f
4, 9 : h ' f , 651 S
S
N &gt;O \0 _ @ B71 M &amp; Y
'
()
4, 9
:Y
* + , -' . !
'
/ 0
1,
67
:(
4, 9
: Y #S
5
1 Z jV N '&amp;\ ) * #E 1 Z
3 45
2
h
U&quot; †Y # 1 ' P52 }
34' , 5
f &amp; 6 `0 E Y &amp;1B &quot;
d &amp;&amp;d1( 16
#E d {1Z
i
_ @ #h + &amp;
M &quot; 45
M &quot;
Y 5 F&amp;&quot; &gt; cd
* #
8 9 &quot;0:
f + &amp; B=&gt;1 ! ' i D.&quot; 1B cd1(
4, 9 : Y #
Y N &gt;O \a I `
b
( R D.&quot; 1 _ l*. \ #D.&quot; 1B '
F(
{1Z
b A c b * †Y jV !Z &gt;6W B
4, 9 : Y #_o BC
6 \$( % cC #T' &gt;*
4, 9
U1 i
1C cd11 c
#
16 ( ) * (&amp;) c .d ! Z &amp;(&gt; \$
/ 0 ;&lt; =
d B6 i
B1 N ' _Y % J L
? k1 F # U 1 !\0 !
Y
&quot; 4, 9
N
!d 5 &amp;2 F 6Y
&gt;s ^ _`a 1d
Q C&gt; !d W\Y
: Y #T' ( ) 1 Z i 1 N '&amp;\ !
^ _`a ? &amp; &amp;\ #D.&quot; 1
[O
3 ]
+
,
+
&amp;
,
&amp;
1d
#N d
kBk1
d
kBk1
(&gt;+ S
d (&gt;+ S
?
?
?
?
=0
&gt;
&gt;
&gt;
&gt;
kBk1 ? &gt; R Y
+
-
+
+
.
† +&gt;
(&gt;'
( S w ' D.&quot; 1 N '( :*.
4, 9 l*R
X
/
ˆ O QSM
k6Y 9F
QSM 52 v J ! \
5
) 4@ , &quot; &lt;A B ) C D
()
5
e
, E
&gt;&gt;
?
E
FG4H
5
JK#,
I+%
&gt;&gt;
?
&lt; ?
&lt; ?
p
! # ,
@ / (
1,
()
L M NO,
# &amp; PQ
FG4H
I+%
()
L M NO,
# &amp; PQ
FG4H
I+%
5
5
&lt; ?
&lt; ?
@ &amp;+4
1,
&lt; ?
D
?4HQ
Q 4
/R2
-' !&quot; 0
,14
?(8 &amp;
()
S
L4
5
^ _`a ? &amp; &amp;\ #D.&quot; 1
0
k ‰ \3
&lt; F91
1d
#N d
=Y
6jV 1 ? &amp;
&lt; F91 2
D.&quot; 1
&lt; F91
6 F6
&lt; F91
A &lt; B1
[ = &lt; F9
F91 c @&gt;A 9&amp;C Š O \0
F91
9&amp;C U&quot;
dK 5=W&quot; #4&gt;1CY b F[ 4, [
! \ 16 #&lt;R@ 1 c
C 1M
*
#
; 5d2
V !(
&lt;
F91 2
c C 1M 2
@ &gt;A &lt; k6 * &lt; F91 N&gt;O &quot;
;^ _`a ‰ \m 52
'*R E* J
D.&quot; 1
k ! #? 3 „9
[ &amp;C
&lt; F91
6 F6
d
F91 ? =@0 ! (
k
F9
6 .k1
N Z,Y c 9F ! ( #? 3 „9 [ &amp;C 6 ! ( E W !B ( _Y j 1M /BC #
! ' ? =@0 Z cd
? 3 „9 ! Z ? =@0 &gt; #N Z,3 c
1 Y
(1) B[ F 0 ? 3 „9
v F /BC TUt
0 hE1 Z ? =@0 ! \ †5 f k „9 [ &amp;C cC ? 3 „9 [ &amp;C 9 ! (
4, 9 : Y #
( ' ) % '&amp;1 B[ F N &gt;O \a Y
;} 7 j 1
&gt;*
dK
;;;; 1d (
&lt; F91 ! Z ? =@m 4@&gt;
z \Y H
1d
b Gz
_6z
#v K cC D U 4 ? % /BC 3 ‹@
,5 CY #Q SC3
=Y
E BC ,@ ' I `
E 0 } F / 0 1 ^ &amp; CY #&lt; A m
&lt; F91 /BC
A &lt; B1 ˆ O QSM v J N !d
1d
Œ&lt; F91 /BC ! &quot;
\ \3 &lt; B1
j1M
v 7
D t
! '
\3
F91
2 1
r
r
r
r
r
j1M
;c
LF I 56 #
F9 j1 • J 65 _Y R Y zM( D.&quot; 1 N &gt;O \0 Q&gt; ‰ K
k
F91
P G &amp;(
Z
c F9 j1 • J
F9 &amp;(&gt; _Y | F&amp;
; 4&gt;1C3 @&gt;C
3 1 1 cd1( _
_ F91 .k1
b F9 @&gt;C LF E 12.6 _ d( _Y 1 1 • K #2 * - c
4&gt;1C3 b F9 @&gt;C LF _.1A(
#
Q&gt;
P G &amp;(
/ 3
c F9 j1 B1C ! &quot; „ 6
.k ? 3 „9B ? 3 9&amp; j1M j1M B1C ! &quot;
;? 3 „9B ? 3 9&amp; &amp; 1 &gt;Z _ d
&amp; 1 &gt;Z _ d
3#456
F91
? 3 „9B
k 9&amp; j1M
k 9&amp; ? 3 „9 j1
&amp; 1 &gt;Z _ d
# k
F91
/#6537
4, 9
B1 g OB&quot; cd1( # F91
6 N 1&quot;0 / * 5d2 1
/ 3
F91
D.&quot; 1
j1M
' \ &amp;1B &quot; 16 #-Ž2 c F91
6 R Y zM(
4, 9 : Y #j1M B1C ! B hyf j1M S , N &gt;O \0 !
X
;;;;; 1d (
e
H 'J
€H 'J
d'7
) v *
&quot; v• 8 T
1L%
H 'J = &lt; =* • #% } ) _0 Y • 8 d'7 T
| 'J ( T m } )
(F (
n})
J K7*
6 7
p
&quot; v
!( @ N
d'7 \
J K7*
=• L
)
H 'J
7N
'J
| 'J
€H 'J
] % B n1
F
!( @ N
`
`• 8 T
'J
(* ( = &lt;% =* T
m2
J K7*
d'7 @
? =• \$
'J f*
`• 8
J
K7*
H 'J
AE 7 V
&lt;
Bb
N&lt;
B
1
7*
. &lt; _H 'J
: =&gt;? ] )V ) 8 L
HV
\. \$
.
N; HV
\) ' ; &quot; 8
V_ B
•;=
% =* x
6
\&lt;#
= &lt;
;
=
!) &lt; % =
X=-2
Y=3
€[ &gt; L % D &lt;
'J
^ =
! B
!; 1
GE
7 B uS E _ T 1
\ ( ' ; L&lt; &quot; 8* =* \Eb
'
!;
0`
\. = % v [ T =* ;S7 T
|S. % v1H 'J
Bb2J K7* _|S. % v ] %
;&gt;m
H 'J
, *
Bb T 7 N
J
%
U
*
&lt; %
I B% b
IJ
J
; B, !( A
€ (F hB
• 8
H 'J
H 'J
) (F ( f B% | 'J ( f* X
=* E (P
S F 0 _
J
'J
n7 =*
&lt; % A7* Y7
Bb aY% X !( @ J. \1*
)7
Bb
&gt;
&lt;
B% ST
'J = &lt; =* inv Y%U ( • #% &lt;
0` s% v ( X &amp; Y b Y%U &lt; %
n ! (
B
J
;
&lt;
b &gt;?
T : =&gt;? \$
H 'J
+
!( H !
&quot;# \$ Column Vector
#%
&amp;'
+
Row Vector
,
\$
&quot;#
56 7
( \$
%
/
!
)
( *
&amp;' # -.!
\$
#
5/
010
\$
2 3 34
89
!
2 :13
; 23 2 &lt; 4 3J ( |S) ! ( ƒ‚
J ( 9 7 ƒi
^ ( ( 9 7 ƒ5
E;F J
Y%U ƒq
I^F J
Y%U ƒr
^
` \^ ) Y%U ƒp
\; @
M# H !
%
: =&gt;? \ J'
T uST
H Y
J
!( H !
;
T
,
F
!
'J
'^ AY D%
\$ 7 =•
@ v
T
f
X
( AY
!( !
d'7 \ ( &lt; %
!
U =• \ 7
\$
J(
J
F S 7
J
e
length
K7* _ 8
F \
7 !
;_
`U
f
( AY 0`
Lb ;m ! _o4 T AY
ST
J K7* _
!
7
f* _ #( % .
1
7
\$
^
o34 Lb
( =* _l`
T ;
`U % 7 7* \
7
p
&lt;
% 1 Lb
J
`?
K7* _
b &gt;U &gt; _oo 7
J ( f* `U L % L
U o34 Lb
o3 7
`U h s B @ N
b = &lt; &gt; _oQ Lb
W K)
J(
`? s!
9eY
) 8 b = &lt;7 S
J(
Lb \; @
U
V]
&lt; % oQ
12 oo H 7
J
€\
N;*
^
;_, ) !(
`U
( Y
_Lb 1000 *
Lb o44 @ U L &gt;U _hb ! ]S' B
\$b F
( Y D n =* H * &gt;U \$ B
a &lt;7 o4 U 1
\$b F
( Y ;S7 =* %
1:10
a &lt;7 o344 U 10
\$b F
( Y
; %
10:1200
a &lt;7 N
; oQ U oo
\$b F
( Y
;
11:13
J
;
&lt; = &lt;
`U % 7 7* x '
[ &gt; E% b &lt;
% v[ T
7
(]N
7
(
7 * &gt;U
^
( Y
`U ' ; ) 8 b = &lt;7 [ S
J(@ E U
oi Lb
• 8 ( a!
J(@ E U ! (
\' ] 1
J = &lt;% =*1J
ST = &lt; . =*2U Q Lb
V] } N J @ E B =* 7 *
@N
; T A!
!( \;
A(3)=15
u I % fS J , .% fS AY
TA})
AY
AY
)
J ( f* I =* 0 B @
J(@ E U ! (&quot; 8
ST !(
7U b = &lt;7 S
'
^ ( ( Y @ E U
J
;
^ ( ( Y @ E ? \$
_
^ ( ( Y @ E U ! (&quot; 8
^ ( ( Y
7U b = &lt;7 S
`U ' ; ) 8 ;
AY
J ( |S)
=
=v #
% =* aY% AY
J ( |S. \$
A S) % fS J
% . 1Lb f*
Square Brackets
~ b* 0` 2J K7* _ 8
7
J |S) % 7 7* l` %
@N
AY
)
J ( |S. s!
9eY &quot; 8
* b = &lt;7 S
^ ( ( Y |S)
J
K7* _
^ ( ( Y |S. s!
^ ( ( Y |S.
9eY &quot; 8 h
* b = ;* S
J(9 7
AY
= &lt; f*
J
b !( @ J. T A
;@
[&gt; &lt; %
J(9 7&quot; 8
X
* b = &lt;7 S
J
J(9 7
J(
Command Window
F S 7 !(
J(
e
N;* 9
N;* 9 7
• \
~
Lb _AY
9eY
.
^ ( ( Y L b !( @ J.!
) 8 b = &lt;7 S
AY
\&lt;#
A
AY
p
E;F J
%U &lt; % } ) max,
E;F Lb
F \$
Y%U ' ; &quot; 8
Y%U
U L % _AY
% 7U b = &lt;7 S
E;F J
Y%P
AY
!&lt;
J U T
I^F J
,
• \
: =&gt;? ] E% b Y%
Y%U
J U T min F \$
U aY% _AY
\bF f*minimum
Lb
AY \
I^F
Y%P
\&lt;# \ ^ '
*E
_ 1 \&lt;#
';L
I^F J
Y%P
7* =•
(*
7*
AY
=* aY uS '
^ (R Y
% v S m% =* V
F ST =* } ) sum F \$
J S' %
=•
AY
product J U T prod
A ;
@N \
^
F \$
Y%U
? _AY
^ (0 10 1 &lt; %
\$
` \^ ) Y%U
? [ &gt; _AY
^ ( ` ^
J
F ST S m% =* aY%
] E
V] N S m =•
%
H 'J
H 'J
!( H !
=( 7[
K
_H 'J R 7* D% aY% V] *
t 'J 1* K
'J 2H 'J
!( L |
H !
*
AY @ v1J ( `U2J ( @ E U3A! ;m
( * D^ |S) ! (4J ( 9 75^ ( ( 9 76E;F J
Y%U7I^F J
Y%U8'J
^ ( R Y Y%U9^
` \^ ) Y%U10Diagonal 'J
b Y%U11U 0M # H !
T uST
: =&gt;? \ J'
) 8L
'J
LY) Y%U
V } ) size, F \$
U aY% _ 'J
(F | 'J ( Y%P @ 7 7 ( * 'J LY) Y%P
7 ( F l`
_H 'J
d H Y
\$ B% length m length, F \$
U l!J%
( f B% V | 'J ( =* f* X K
t 'J \ \$
V] * _ F ST &quot; # cBE @ N \ \$ 7
\&lt;#
; Z (F
'J
LY)
c | 'J
size
F
&lt; \$
( | 7 =* 7 * &gt;U *
• \ \$ 7
•
c
'J
\$
N&lt;
L '
!)
\J
(F
( | 7 =* 7 * &gt;U *
&lt; \$ 7
U J(
? \$ 7] M _
\ ]1
H !
) @ N 9 (? \$ 7 =* aY% F [ &gt; l `
'J D%
&lt; \$ 7, d
`
!( 0
?
\$b[S _
7 N DJ
L b 0` L % L _d
.] '^
@N \$
? [ &gt; &quot; n%U &lt; % € 'J
} N
7N @ F
0
DJ
11
`U
_
T ^ ( ( * J(
ln
;
`U ! (
6 E
V] * \$
‚3 Lb 0`
! } N DJ
\$ 7 =* % 7 7* x '
@ F DJ =? „)
^ ( ( `U 7 * &gt;U &gt;
oQ i‚ Qo (F `U % 7 7* \$
;
\&lt;#
@
[&gt; &lt; %_
J(@ E U
\
^ ( ( * J(@ E U 7&lt; U
} ) _] 1 T &lt; _
UL% ] 7 !
] EB 7 ;&gt; ; 'J D%
\$
_ ^ uST l `
_ 'J
'^ Lb
%
7N
U@ F
} N DJ
@ F DJ @ E B7 =* % 7 7* \ _c B @ N \
'^
} N
U@ F
J
uST = &lt; b
@ E ? \$
[ &gt; &lt; % _ ^ ( ( @ E U 7 * &gt;U
J(
\
\
[&gt; &lt;
N;* |S)
J ( |S) @
t
A7* } ) _ 'J
c ) J
\ ; ( * \ ; D^ |S. \$ =* H * &gt;U &lt; _L b L
!( \ !
'J \
V] * \$ 7
A!; } N DJ |S) % 7 7 \
\
Lb _A!; 0
|S.
|S) !
DJ
_
\$ %V
'J
J(9 7
_
'J
!( %
) J ( !( @ J.
7 A7* f* _
\ ]1 TH !
_c B @ N \ \$ 7, F ST l `
_ J
ST A fS
s B @N
T ;&gt; L
'J d'7
} N
0
]N
F J
@ F DJ
U 7N
7 N DJ 9
!( \J.7 =* % 7 _
[
[(
J
!N F
]N \$ 7_ J(
%
J(9 7 ! (
DJ Lb ;S [ &gt;
% 7 7 \
Y) | 7 &lt;7 L &gt;U &gt;
7 N DJ
%e
N;*
Lb
&lt; _
%
]
N;* 9
'J
&quot; #
LY) | 7 7*
! (
\$
)
ST
E;F J
\
E;F J
( }.E% D &lt; _D! \&lt;#
'J
!( \
\$ %, [ &gt; \ \$ %
_ 'J
( \;
E;F
l` !
@N
K7* _ ( \;
!( M #7U L
'J
] EB 7 ;&gt; ; max
F d'7
X
Y%U
; aY% L
E;F Lb
\&lt;; 'J
P _
E;F Lb
F
s% v ( E;F J
J
( }.E
E;F Lb A AY
=• %
Y%?
\$ %_
\$ %
'J
&lt; L
( \;
E;F J
!( \J.7
_…
?
6 !
\$ b ! „)
;
I^F J
E;F J
Y%U
T ;&gt; s B H
d'7 T _ '!
H E
min F \$
UL% &lt;
@ N L&lt; U
^
!(
e
( \; 0 1 Y%?
Y%U
\$ %0 Y
R Y
! ( &lt; sum
\$
P
N; ]n%* !
uST
Y%U
F \$
? \$ 7
!
;R Y
Y%P
@N
^
6
_
p
1
; _AY
^
0`
,)
` \^ ) Y%U
0` L % , ) !( ( \&lt; = &lt;
n ! (
&lt; _
'J
n \^ ) 6 _
1 AY
^ ( `L%, *
@N
K7*
'J
^ ( ` &lt; %
F \$
U L &gt;U _AY
'J
X
'J
'J
^
\$
^ [! =* ] ^ J
[ S @ N ST diag, F \$
0 Y
! ( !( @ J.
^
X
[!
b Y%U
_] 1 T &lt; _ % ;* \$
UH&gt;= &lt; b !
U L % _Z (F ( f B% | 'J (
% 7]N
_
'J
` \^ ) !( @ J.
b !( H !
% 7 7* *
%
\ ( =•
uST
&lt; %
X
M-File
@
U
%Y
!
uST
D! % b &gt;
&lt; _
F S 7@
d &lt;
F @ P !
T
€
F
.%1
F @ U (U aY% = ; N;* * J ( \% 7 * &gt;U _
B7 ;
F @ U ! ( 1%1
F
; aY _m
1 &gt;U2.a
d'
%1
F 0 1 @ U aY% , *
!
(U 7 * _ E; 6 7 E ; &gt;U3., U
% E
F @ P (? \$
E&lt; 6 7 E S
F a
m † ) &gt;U4Debugging9 { l .J ! ( \ ( a J%5\$ B ! † .% fS \!
U `P ST ] E; ] b / I B% 0E
ST
_\ I# = V] * ] ; 6 7 E
; !(
M-File B% \ ( L _ !&lt;# uS ] ) ] Ev
(U * _, *
; U 1 . = L‡ \%
!(
^ uST _A! I# L % A 9 7P
. F ST !(
F @ U
J 0E U € ^ [! \ I# L % D &lt;
\&lt;# S m _ % 1 uS 7
T
X
K
\$
X
+
: =&gt;? \
\ J'
M-File S 7 !( |
M-File S 7
J
K7* M-File, S 7 !( |
=• \$
T
6 7 E „') (
X
• • #% &lt; _6 7 E „'.
[E
_\ I# ˆ !( cIn
\$ b m * E%V =*1]
] * = &lt;% V =*2!^ H B !( L P f .% V =*3‹ _ Š _ ƒ _ ‰ \N ^ ˆ
!( f . V =* ƒ‚
6 7 E S'
\$ % VU • # [! ( aY%
B S
=•
&lt; @N S' L
J
l` T ; \ I# ˆ !( cIn L %1-
( &lt;
training1A B
X
_V] * 6 7 E „'.
E
2-
Command Window and Workspace
\&lt;#
X
;_
'J ! L
G
];
L
I \$ 7 M-File
K 3-
U
4-
S 7 T 8 LO _
XX
B
(P 1 . = ] M ! „'. =•
Command Window
\$
F
_6 7 E \ I# =• \$
5-
F 0` L % _ !&lt;# uS ] . , 1 L% 6 7 E L b \K 6 7 E! }% . ! ( \; A7? „)
;
. F S * E =*
V ! \$ 7
6 E 0 1 * E = &lt;% ST _6 7 \; @ * CLC
[ &gt; l` % @ N \$ 7 7 (
Xe
M-File&amp;&amp;&amp;
K
Xp
Command Window
L
'
_\ % CLC
* =* ;m 7
) _@ N
&lt; =• \$
\%
=• \$
%Y L
A,B,CL b !( , .
e
9 '&lt; \ % CLC F =*
;m 7 S
Workspace S 7 T #7 7 ( &lt;
S
T#
D,E,F
U A,B,C
c ˆ
I s% v ( 6 7 E
c B \%
L
Workspace
w 6 7 f*
b f* lB \$ % } . clc F
Clear * 0` aY% _ !&lt;# uST
.: =&gt;? ] )V ! ( L
6 E 0 1 ] n%* F ST h EN aY% Workspace ,
=•
0 # / ' „)
clear, F 0`
&lt; 6 7 E d'7 S ' =• \$
e
F G
: =&gt;?
B \&lt;#
( _ E;F Lb
L
I^F Lb
F G S *
linspace
% . s% v ( _AY … 7U ! (
b
%ST
t
c
J S m%
oi
b
i
_
• 7 o4 \$
V plotting L
\$
B% fS
U ' ; l` %
Randomization System in Matlab
! M # \$K
Œ %e
M #( \$ K7 AY =* T \$ K ST
e
e
_\$
U @ 7P \Eb
P
@N
B%
ST
N;
F ST
B; • T !( d
randint
l .^ ( \$ K7 \$ K7 d &lt; _Lb { M #( \$ K7 m#
] M #( \ ] Jb
* ] % % e d A \$ b F \$ K7 =* ; _s B
J S m%
!(
e
F ST \$
? c B @ N ST
F
F \N
`
F ST
_
'J
* AY
\&lt;#
e
( A mB%
A'%
6 7 E
Input
\ Y% A
U@
\$ B \$ %})_
\$ B \$ % ] E [&gt; 9 * | ) ) *
\ \$
_[ @ ? [E %
7 * &gt;U ] N
; L % _Lb d
L U TA
UL
=m
] 1\$T
! | 7 =* 7 * &gt;U
F ST
Str2num &amp; num2str
Lb
e
€ String and Character / '
V] *
!; * | ) Tstring
\$b •
( Y * Lb ( E( Tcharacter
[ S; d&lt;
string to Character \% . \$ % * [ T
T
num2str
str2num
F uST
'%
&lt;
input F \$
? \$
_ F uST
J L ' )cB @N \$
U
)
\ _=•
I B * E _\$ b * @ ? \$
string
J T 8 _[ &gt; t Ž8 f* \$* \$ b * 7m; !( |
`
e
J
a!v
@N
U AY
eX
T 8 _Lb
* character
U string \% . str2num \$
_A!&lt;8
I% V A &lt; _
, D%
=* ] EB 7 ;&gt; ; ( 7 =* aY% &lt; _AY
? =• \$
num2str 7 N
F ~ J &gt;
; string U \$ b F \% .
F ST \$ B%
B L P 0n LO _ B L P @ U
T ; d c string * \$ b * !( f .%
F
ee
O N
M N L
s!
9eY
9 E!
U L U !( .7 =•
B% T )* c
b (
\ B
2D Plotting F M O L
= &lt; L
! ( L&lt;.
b
= &lt; = T F M OL
dependent B% • independent
&lt;. V A b =* f* \ B
I f* independent Variable &amp;&amp;&amp; J
I L b !( A b
%})
•
I f* dependent Variable
J S m% } ) plot F &quot; # \$
_
% J
%ST &quot; 8
=•
% I
sine WaveL
- „)
ep
Sine Wave L
J
' &lt; c B @ N ST
\ !b ( ST Sine Wave , L
\&lt;#
c • 7 o4 7
U b 7* „)
\&lt;#
p
; _AY
\
•
(
%ˆ
V _ !&lt;#
uS ] )
] N; h B. b
p
=* „)
= ( Y-Axis H J
. X-Axis H B
. @ ) H B 0` ' ; \$
+
S m
'; _ n /
N;* 0` [ S; _
=
I '; _
!( &lt;E8 0` _
!
Œ: =&gt;? ) S 7
!J' H
( 9 #7U ' ; _ !J' S 7
\; \ (
p
\
_= F
I \N
@
L
!( \J.7
•M J
J S m } ) plot
F
•M J
p
H
U •M J
`U
H
, ~
G
I ]1f n
= &lt;% = )F G
( Y T uST _ T t k 7 \$ Y7 U !J •
I
n •M J
G \%
\$
)F U c
uST = &lt; _
uS * s B @ N
=
I ]N \$
\
•M J
!( ]
(U
[! 0` L % D &lt;
J
\$ Y7 (
p
E( 7U \J ]
d c
!( \J.7
= &lt;% =m
%1 ^
`? =• L
\&lt;#
p
!( \J.7
(]
^
6
f* X 9
\&lt;#
\
p
H
) \$ Y7 !( \J.7 =* 7 * &gt;U
!( \J.7
•M J
) 8 b = &lt;7 T
L
L
!(
!( &lt;E8 0`
L
%. \ B
= &lt;% } . _L
!( &lt;E8 0`
plot F
grid F S m } )
;L
pX
! (
\&lt;8 = &lt;
\$ %
\&lt;# S m } . _=
pe
% = &lt;% } .
;S
U
`P
*
\
\$
=•
\$
? [&gt;L%_
hold F 0` L %
-U L % D &lt; _c
F
F % 7
_ ) S 7
J
;=
pp
-?
\$
_6 7 E \ I# ( &lt;
0` L % &lt; plot F \Eb Hold on F
K7*off,
= &lt;
!J' S 7
'!
F S 7
H
0`
S 7
` \$
S
d'7 H
0`
V] =• \$
[ &gt; 1 _] J' A ` L &gt;U t
S 7 l ' \$ % fS figure F
J T8 t = ! %
S 7 -? \$ b
= „)
!(
U … .7 !(
L % figure
* \;
A7* ] !( figure *
fS plot L
* S ' L A7
.A) 8 sE fS grid * \N
uS •
•M J
[ &gt; !( c B @ N ST
% S
0`
[!
1 })
!;
%S 7 !( \J.
€ ST † ) D &lt; , ) S 7 ˆ b S
( =* „)
_, *
6 7 E \ I# Lb =•
S 7
7N
L
\$ % LO _
7N
L L
F S
!(
@ *L
\$ %
L % } . clear F
close all F \$
? Lb !&lt;# uST \. figure F 1 aEB % 1
V
* O O[ T= &lt;
\; 6 7 E \ I# ( [ &gt; \Eb ) ' h7 ; S 7 f* / tU
LT 6 7 f* \ ( L %
\;
U
clc
clear
close all
\%
\ !b S A! ( L fS @ N
T ST
)
S 7
!J' H
9 #7U
H
( 0` \$ 7 =* \
\T &lt; _ S
d'7 !(
N;* \ \$ 7 =* 7 &lt; ? 7* 7S *
plot * \; \Eb subplot F \$
? [&gt; &lt; %
.
_ ) S 7
!J'
0` !(subplot F \$ % } ) _ T -? \$
H
( %. @
subplot F \ %
_ ` '; T K
H
(
F \$
U ( aY% _AY * 'J 7m;
J
H
0` \$
; F %.
\&lt;# \$
U \n'%
\&lt;#
;
n
Y
`
\$
_
aY% HV
% =* @
_V] N S m
_
F 7
S m
F
]
_ 3 (F ( o
'^ ( AY
7m; = &lt;
7N 7 S m
7N
subplot F \$
U ( \ J' u % . aY% ST
;= &lt;
subplot F
J \$ B7 LO
l`
J
F
;
V @ F \&lt;# L
J
F
;
V 7 N \&lt;# L
b
= &lt; ] ; 6 7 E 0`
\$
=F
=
\&lt;#
X
; M
= &lt;
\&lt;# S m
_
[
e
+ bF \$
UL% 7
N;* \I#
!I#
H 7 0 1 \$ b *]
@ N 9 (? \$
J \&lt;8 !( …
\&lt;# = &lt;% =* % 7
h7 ; &gt;U K)
_
!( 5 i ‚ Q 3 o
F
p T N N
\I#
p
H7
!I#
H 7 \$ b * Q (F ( Q | 'J
\$b * q 7N
\I#
H7 \$b *
\&lt;# = &lt;% 6 7 E
( =?
; Y
= &lt;
.
B
X-H B
.
B \$ 7 =* 7 * &gt;U ] N _ .
T
F \Eb 9eY S ' =• \$
} ) ylabel F \$
? \$ 7H J
.
B \$ 7 =* 7 * &gt;U xlabel F \$
? \$ 7Axis
; T )
^ % F ; S m%
ylabelH J
. !( A E L % Ž# d'7
E @ N \ =• \$
J
!( \J.7
!(*
title F @
l`
[&gt;
\&lt;#
T ; A !( H %
= ( 0`
\; !(* = ( 0`
F ST = &lt;% } )
0`
s B @N
&lt; %
UR 1
J
!( \J.7
L
\
N;* *
J S m% text
!; 0`
ST •M J
%.
K
Y AY
6 7 E
F \$
@ )9
\
;
? [ &gt; _L
7 !( •7 0`
!( N;* *
7 !( •7
`U &lt; %
)
M 0` LO _ E;F Lb
Y%U ' ; ] B V] N S m
maximum point
J = &lt; Y%? \$ % F ST find \$
F &quot; # \$ 7 7 (
E;F J
!( }.E
\ \$
]N _ J
;L
Y7 _6 7 E \ I#
(
&lt;
\
J
\$
Y, &amp;&amp;&amp;!
K7* workspace,
K
(X
K Y
K
b !( @ J. 7 * &gt;U
X
b =? „)
;
!(
K
K
!; 0`
;
@N
K
sE
\$
=•
X
legend F
F 0`
\$
]N
_L
!( = \; % &gt;
E L
J S m% =*
V F ST =* ] !(
!(
;6
e
6 7 E
Y
.'^ !( \ 0`
@N
legend
; &lt; %
F ST \$
B%
= ; uS * sE fS @ N
\&lt;# A Y L
p
] N _L
_= OU
\
Hb
Hb
( =* f*
( !(
K
% legend F =? ,
Y%U LO b ( L
\$
;
B%
;
= &lt;
d&lt;
.
EB
d
[ S; H B
A ;
plot
F
legend
F \$
U L % =* (
aY%
b %.
%1 S 7l
. , IJ
K L
%.
% 1 S 7 l !(
J S m% fS axis, F \$
? [ &gt; _H J
T
E
@N
H '^
= &lt; } . L ! S 7 l ' Lb
o4ƒ T H B
.
b \b* ƒo
o4 T H B
.
b E;* ƒ3
o4ƒ H J
.
b \b* ƒQ
o4 H J
.
b E;* ƒ‚
\. H
@ ? Lb
F S 7
S
[
K
%
+
\$
&quot;Y L ! S 7l
';&quot; 8
S
[! !( T %
•M J
U@
L
!( c @ U ' ;
\$
+
: %(
* b = &lt;7
0` =• [ &lt; %
T ]1L
\$
L; !7
+
*
+
@
•
@
U ';
@
•
@ U
b
% &lt; _H 'J
*H Y \$
? L @ U &lt; % A7* !
L% T
UL%
•
=* % S L
!(
•
? \$ 7 7F ] K7 _+
\$
? L
^ H J H B
. L b 0` L % _H J
.
b H B
.
b
!N
.AY
J
F [ &gt; ; L % _+
\$
? •
@ U ! ( ginput F \$ B%
\&lt;#
.l '
;, @
)
P • 7 ( ;&gt; \$
Enter &quot; '
[&gt; &lt; %•
!( cIn
T [ !(
E
@N
M 7V (@
\; •
@
U
U 7 * &gt;U *
9 7P
[ S; o4 T H B
.
b E;* '^ T H B
.
b \b* _ &lt;E8
L ! S 7l' \$
( Ev L % •
uST ginput, F \$
? L
!( •
E; ( @ U LO _H J
. EB
.9 ) M \&lt;8 !(
\&lt;#
F
;L%
S
[
';
K
U
@
\$
P \$ P Enter !( cI`U @
? Y E
/
. !( cIn
P
! (\$ U
L
_&quot; Y
Y •
_•
MeY uST &quot; 8
-U
@
P S 7[
* b = &lt;7
K
F
O OL
= N %X&amp;Y
] ; =* X , Y &amp; Z , . _
. O O !(
% F O OL
=* !
;
L L% ) &lt; _ .
1
•
L b T L [! &lt; _R ' P \N % Z . =* _ F , B
\$ % } ) meshgrid F \$
? [&gt;
! [ &gt; D% \$ 7 =* aY% F , B
7 f*
\$ % ; Y-Axis, H J
. @ v d' X-Axis H B
. L b &lt; L % 'J … 7?
, B
T 7 &lt;
'J = &lt; S X-Axis, H B L b @ v d' Y-Axis H J
. Lb &lt;
L
l` T ; F
A
O OL
&lt; plot
Ab ( H J
. DJ
.H J H B
;
J S m% meshgrid
F \% E; \$
B% fS
0`
.
c
F =* !(
mesh F \$
U L % meshgrid F \$
U
F
E @N
\$
X-Axis H B
. L b D%
@ N ST \$ 7
b
0` \$ 7 ] w d ] * _H B
.
; Y
= &lt;
X • 7 ( 7 N;* &gt;? X &amp; Y
]&lt; •
( Y
[ S; Y b e
;= &lt; Y
Œ
X
6M
=• / ' „)
-P / I B hb
&lt;E8 (
E( Y
=?
[7* (*
ˆ !; •
( H ˆ !; K)
=? ,
;
% R E P ST
.: =&gt;? TS * L
e
@
7|
_} N ( E U
T _
E
!N { • ! ST _\$ % \;
H I L b Y%U HV
† O@
!(
( 0` H B
. 0
[!
. h. ) B
Y%U _L
Curve Fitting ƒ‚
L&lt; \ &lt; B7 _\$ &lt; 7 *
E @N &quot; 8L
_ E
!N F
U ' ; ƒo
0v c 7 Y%U ƒ3
!(
= 7
U ƒQ
EVAL
=* \ , @ N ln
0M
N;* | T A fS eval F T \$ T * ;&gt;
V _@ F s E
J
` L &lt; Sine Wave % e a 1
%
Workspace&amp;&amp;
aEB
F \$
[!
p
U
TS aY% string
^
9 E \Eb
7* ;m !
G%
a J% =
; &lt; _
G%
t L b D%
V % e a1 1 L
? [ &gt; e1 . [ &gt; / 7 =* aY% T , G% ! e1 ) N
T + bF [! _
b
T 1
n% L % |
L
( }.E% LO _+ bF
( }.E !( F \ % } )eval,
;6 7 E
;L%|
,
@ F sE
; Y
K
S'
U L * !( =•
.7
HV
=
]N
_HV
O O \)
\) @
;
U !(
!( [ &gt;
; 6M
Y7
A
; &lt; %
=*
!
;
\;
HV
sb
@
• . a! %
P 6 7 \ ( aY% \$
HV
ST _
! coefficients H
@ U L % =* • #% ST &lt;
B ! ] B _}.E
/ I B hb
ˆU HV
H N; &gt;? _
O O \. 6 7 \ \$
] N _\$ ; \&lt;#
J
H
` aY% HV
uST \.
L b .% =*
!( aY% _ O N HV
@ ? \$ B \$ %
(_
; &lt;' aY% [ S
&quot;=&quot; ( ( }.E%
\Y
!&lt;# uS ] ) _H I L b \) Y%P V] *
=* x ' \$
LO _
\&lt; H I
!( , .% fS 9eY D%
\$
LO _
\&lt;
x=1 , y=0,z=0
O N HV
xH
L b !( \J.7
x=0, y=1, z=0=* x ' LO
O N HV
yH
L b !( \J.7
x=0,y=0,z=1=* x ' LO
O N HV
zH
L b !( \J.7
[&gt;l` L%|
DH
L b Y%U ,
E % L _ O N HV
H
!( !J) b = &lt;7
.
!( 6 7 E
; (
\&lt;#
; HV
; 6M
O O 0`
= &lt;
=• \$
[! @
P S 7 \ ( ' ; ] )V S m
9 e1F G &quot; ` \$ (
)
_
!
E; h7 ;
HV
HV
( f* \) &lt; % @
V _&quot; Y @ F s E
d'7 !(
* b = &lt;7 S
Zero Crossing
,H B
b
%
L
. 0
v
sv
!( 9 b ˆ M 0` _
L
\&lt;# S m =* aY%
&lt;'7 7 ( _] !b &lt;'
Y%? \$ % LO Y=0
•
';&quot; # \$
U … .% 6 7 E &lt; _] E% ]
( }.E% fS 6 7 E
&lt; \$
6 7 E
; _•
[!
\$
@N
6 7 E ST =m G E
} ) _=• • 8 f*
ST
% b
&lt;'%
\&lt;#
Y
= &lt;
Digital Domain T
Digital Domain, &amp;&amp;
B%
EE
) _ !&lt;# uST aE
•
( !(
_•
( Y 7U \J c ( E( hB
L%
f* =* [ &gt;
sine wave a Y
L
6 7 \
b &gt;U ] N _•
[!
\ ^ LO _
L
T
UL
\&lt;#
;, \ !b • 7
\&lt;# S
6 7 E
X
\
Lb [ &gt;
;m ! _
Y
\^
•
% . \$b
=? _,
;
J
e
= &lt; _ Y
=?
6 7 E d'7
•
(
%e L
;
†) ;H B
. 0 0v
6 7 E \ \$ 7 7 ( _0v
p
=• Digital Domain
B%
ST
= &lt;
V =* &lt;
_•
H t [ T @ e%V
@ )9 ) M
- \$ ( aE T ST _A!
Digital Domain ^
&lt; @ F
,
;
b fS 6 7 E
J
K
Lb =* &lt;' &lt; _Lb !( \J. T
, • H B
. / c , )U h7 ; &gt;U
,H
` 6 7 =? H B
. \' *
; = ; &gt;U
_
[! !( 9 ) M 0` L % LO _0v
7 %
J
&lt; _
7* } )
%Y
d'7 D%
F Lb
=?
7 ` (, !&lt;# uS ] ) ‘ 7 7 ( =•
B
. / =
= ) ] E1 = &lt;% b
* _] E = &lt;% 6
Lb =? H B
. h.
S a Lb
- &gt;U =* f* _] E1 = &lt;%
T8
LO y D% s% v ( [ &gt; _ !
• ; y b h7 ; &gt;U ] N _] L ` LO _ ) Lb
|S) L
7 \;
; _] '^ Lb = &lt;% =* \n'% _L [! [% . L Lb
\ m A !( a
!^F
c )
b
m = &lt;
6%
6 7 E
&lt; \$
=•
` T
!(
\;
(
`? \$
LO
@ v* = &lt;
„)
. .^ h.E^* b
7N sE
= &lt;
% S
.
\$
!(
=
? @N
7= 7
ST \$
LO _
&lt; _
h. ) B
Y%U
L
H
D%
\$
})_
H E
@ N ST
9eY \ !K \$ 7 _
[!
)B
Y%? \$
LO _L
T %%1 % *
. h. ) B
Y%Ptrapz
) B [! \ !K area
area F &quot; # \$
J S m% } )
[! \ !K LO a Y
L
;
!( c B @ N S '
K
\$
J S m% } ) _ .
aY
h. ) B
. h. ) B
Workspace S 7 @
Y%U
Y%U
)B
\$
B trapz
cB 6 7 \
b „)
\$
F ~ J
*
H1
LO _
G%
[!
\$
.
LO inputs H
@ ? \$
_uS '
h. ) B 1
LO _
!(
=
.
) B \ !K \$
;
H - _= M #( =
7
% 7 fS 6 7 E
U A1 7 =•
? \$
LOoutputs
UL
; #
X
&quot;Y L b} N sE
= &lt;% S
uS ' L
uST
F 0
sE
Curve Fitting
Y%U ] 1 T !
uST =* } ) Curve Fitting T
F } N
E
@ N S m =• \$
S m outputs …
=* „)
inputs H
( Y @ U ( ] N _\$ K7 fF m &lt; b (
b ( = &lt; „)
curve fitting \$
U ( *_ . b (
Y V
# •
( Y
.\$ K D ^
E%
b ( f*
Y V\$K
1
•
( Y
^ uST
= S! zeros ones T % * &quot; # \$
o u ^ ( 0 1 AY * 'J = &lt;% =* 0 B%ones
'^ u ^ ( 0 1 AY * 'J = &lt;‡ % =* 0 B%zeros
% F ; ; % v
J „)V
\&lt;#
e
6M
- „)
&lt;
&lt; %_ &lt; %
p
Curve FittingR 7* ( L!&lt; =• *
% ( R 7* [ T
1- linear
3- Sinusoidal
4- exponential
@ F R @
=• * _0
@ F R @
Linear Curve Fitting
\b* L B c
7 \;
%
B = &lt; }. L B c
J T#
Y%U L % \$ K
ST
70
H J
.
b (H J
\&lt;#
b H B
.
b \; @ N
l` T &lt;
. !(
7 \&lt; =? Linear Curve Fitting % v \$ B7 7 } )
J
a&lt; b
uST _H B
. !( .
HV
&lt; \$ 7 ; 7 Y
J
J
\$ 7
;0
HV
[!
\) ( D! !
;
!
\$ 7 =* 0
B7
7 ( &gt;?
; &lt; %
B7 Linear Curve Fitting &amp;&amp; ^
X I ! L b ( Y D%
;S
K&amp;T
UR 1
];
b !( !J) b = &lt;7 S
! ]E ]
Y
b
Y
; &lt; %
\N
X&amp;Y
\$K! b
b
b
6 7 E
X I ! L
N;* !( \J.
N;* % = &lt;
L
\$ 7
&lt; 9E
( Y
\$
Y
=•
D%
b !( @ J.
=• \$
X b
N;* % =* x ' =•
7? ] EB 7 ;&gt; ;
X&amp;Y
b
J
\&lt;#
`
&lt; %
=* } )
Y
`U LO Column Vector f ( AY
] EB
!
; ones
• ; \.
\.
U Row Vector DJ AY \% .
F \$
? ) A b0 1f (
^ = &lt; =* aY% K &amp; T L b !( \J.7
) A7* G E
\$
K% b =•
\
_V 0E
€ =• [ S; T \ _
'J A b h7 ; &gt;U l .^ ST &lt;
^ =* f* inv F \$
UL%V (\) !
B
( 0` L %
hB
'J
= &lt; l .J
h7 ; &gt;U
•;
\b* •
A
%
c
B
[&gt;L
\. = &lt;%
= &lt; }. ]
J
7}. • 7 (
T
L
= &lt; _ &lt; %
D%
Y
\$
=•
=?
\&lt;#
L
!( \J.7
T A !% fS s E
U\ 7
Exponential Curve Fitting
Exponential Curve Fitting
X&amp;
b
; &lt; % Exponential Curve Fitting , T
\&lt;# Y
J
a&lt;
N;*
'J
1
^
!( 6 7 E 0`
T
% S
uST
_
; &lt; %
\$
=•
7
F sE
N;* H 1 &gt;U
=• S m
;6
X
K
: \n'
e
7* b = &lt;7 ST
E)* 0
U K
Y% =* : @m * _
uST 9 7U
!( L 7* fS :
&lt;% = _+ ' 1 \
ST O \ Y% =* _A )
B
ŒA !(
[&gt;
A7U _L% &lt;
1
)U
. •
!E
L; *
&amp;&amp;&amp;'&amp;&amp; &amp;&amp;&amp;'&amp;&amp;&amp;( &amp;&amp;&amp; &amp;&amp;&amp;)*
p
.