̲Ͳ ²
ֲ Ͳ «² ˲Ͳ»

В
˲ ˲
ֲ
1

8.160102


ii
" "
2 i 6. 09. 2010 p.
2010
: 1 8.160102 / . .. , . . - i: " ", 2010. - 12 .
: .., , ...
. ., , ...

ii : .., , ...
: .., , ...
.., , ...
, .
Ͳ Ͳ ²Ҳ

. , 򳺿 򳺿 .
:

; (1)

. (2)
, , ( )

.
(), , () () , .
1.
³, , .
. (3)

(4)
. , . , .
( ) . -, . (1) (2) (. 2):
; (5)
. (6)
- .
( ), (6) , .
- :
> ;
> .
'
, . (5) . .
(; Discrete Fourier Transform, DFT) , :
, (7)
, (8)
 .
(7) , (8) (). , , . ,
.
dz (5) (7) , , :
. (9)
, , ( ),
. (10)
(9) : , , , , , .
. .
, . , , - , . , ( spectrum leakage) (. 1). 16 4 ( ) 6 ( ).

. 1. () ()
()
( weighting functions), (window). , . :

, ( ) ( ), , , , . (. 1, ).
. 1
1.
³

³


1.

4.


2.

5.


3.






(5) , , -. , . , , , , ᒺ . (; Fast Fourier Transform, FFT) .
2 ( Radix-2), , . , - N1- , . , , ( decimation in time, DIT). , ( decimation in frequency, DIF). .

- (1.7) :
,

,
(11)
(11) ( ) ( ). .
, , (12)
.
, (12) . () (, , ):
, .
(4)

, :
, (13)
(12) (13) , ( butterfly). . 2. /. . , .

. 2.
. . 2- .
. - . - (. 2).
2.
- N=8


-
-

0
000
000
0

1
001
100
4

2
010
010
2

3
011
110
6

4
100
001
1

5
101
101
5

6
110
011
3

7
111
111
7

, , .

.3. -

- , :
.

.
1 -1 k, k . ϳ ±1 , , ᒺ


, . .
, :
1. N/2 :
,

2. , -
,
.
, (. 4).

. 4.
- , , .
. - , (2) .

.5. -
, . ʳ , . , 4 , . ³ (11) . (, 100- ).
MATLAB
MatLab .
ϳ MatLab , . 6.
MatLab , . (Command Window). , . (Name), (Size), (Bytes) (Class).

. 6. MatLab
MatLab () . ֳ (ASCII) .m, . MatLab . .m File/New MatLab M-file.
. :
» save , . .mat. . :
» load ' , .
» help .
MatLab % - .

MatLab , , . i j. , 1.5+2.3*i. string. , , . .
, 19 , , .
MatLab . () MatLab 11 8- double. MatLab . . , , . 1. []. :
>> x = 5
x = 5
>> x(2, 3) = 2
= 5 0 0
0 0 2
>> (1:2, 2) = []
x = 5 0
0 2



, ^, . . :
>> sqrt(sin(2*pi/8)^2+2) .
, MatLab . . 3.
3.


sin, cos, tan, cot


asin, acos, atan, acot


sinh, cosh, tanh, coth




exp


log, log10, log2
,

ϳ

pow2
y

sqrt




abs, angle


conj
-

real, imag



.
. , ";" . . ,
= [1 2 3; 4 5 6]

= 1 2 3
4 5 6
(. 4):
4



zeros
, 0

ones
, 1

eye


rand


. : . ,
A = zeros(2,4), B = ones(2,3), C = eye(2), D = rand(2,5)
A = 0 0 0 0
0 0 0 0
B = 1 1 1
1 1 1
C = 1 0
0 1

D = 0.7021 0.5039 0.1974 0.7228 0.9318
0.2087 0.2632 0.0149 0.4361 0.4660

(, ). . , :
= _ : : _
_ ; ; _ . '. , 1, :
= _ : _
,
>> = 1:5
x = 1 2 3 4 5
>> x = 5:-2:1
x = 5 3 1

":" , . . ":" . 4.
5
. :
A = [1 2 3 4; 5 6 7 8; 9 10 11 12];
:
A(:, 2)
ans = 2
6
10
A(:, 2:3)
ns = 2 3
6 7
10 11
A(2:3, :)
ans = 5 6 7 8
9 10 11 12
B = A(1:2, 1:2)
B = 1 2
5 6
y = B(:)
y = 1
5
2
6
x = A(4:10)
x = 2 6 10 3 7 11 4

4.
6



'


?
()

*


/ \


ij . , . ,
= [1 2 3]; y = x-2
y = -1 0 1
.
, . , ".". () . , . ,
X = [7 8 9]; Y = [2 4 3];
X./Y
ans = 3.5000 2.0000 3.0000
() . , , true, false.

MatLab .
. , 7.
7



plot


loglog


semilogx


semilogy


. 2.7 plot, .
plot . y , plot(y) . , plot(x,y) y=f(x). x-y plot , MatLab , . :
plot(1, y1, 2, y2, 3, y3).
,
plot(x,y,'color_style_marker')
color_style_marker 1-, 2-, 3- , , , :
'c'-cyan (), 'm'-magenta (), 'y'-yellow (), 'r'-red (), 'g'-green (), 'b'-blue (), 'w'-white (), 'k'-black ().
: '-' , '- -' , ':' , '-.' , 'none'- .
'+', 'o', '*' 'x'.
plot , . , plot .
figure

figure(n), n .
.
subplot(vha),
v h , .
grid .
, :
x-, y-, , - xlabel(' ), ylabel(' );
- title(' ).

MatLab for while. for . ʳ end. for - . :
for k = x
;
end
, (1), (2) . . (nd). : for k = 1 : N, for k = -1 : 0.01 : 1.
while. while . ʳ : , . ʳ end. :
while
;
end
break.
. false, - true. , : (), ( ), < (), > (), <= ( ), >= ( ). , , . , , .
>> x = [1 3 5 2 4]
x = 1 3 5 2 4
>> a = x > 3
a = 0 0 1 0 1

MatLab if, else, elseif, end. :
if 1
1
elseif 2
2
else
3
end
if 1 , , true. elseif else , . end.
m-
, MatLab, , m-. , MatLab, . m-:
Script. script MatLab . Script , . .
Function. m- . :
function [ ]= ( ).
, . . , , . ' , .
MatLab , result = my_function(a1, a2). MatLab. Enter. Debug/Run F5.
DTMF-˲
, , DTMF . DTMF , 4 3 12 . , , :
,
1209
1336
1477

697
1
2
3

770
4
5
6

852
7
8
9

941
*
0
#

: 1 697 1209 .

1. .
2. MatLab, , . N 8 DTFM Lab_1_ Signal. .
. 8.


³



1


N = 256
Lab_1_1.mat

2


N = 512
Lab_1_2.mat

3


N = 1024
Lab_1_3.mat

4


N = 2048
Lab_1_4.mat

5


N = 256
Lab_1_5.mat

6


N = 512
Lab_1_6.mat

7


N = 1024
Lab_1_7.mat

8


N = 2048
Lab_1_8.mat

9


N = 256
Lab_1_9.mat

10


N = 512
Lab_1_10.mat

11


N = 1024
Lab_1_11.mat

12


N = 2048
Lab_1_12.mat

13


N = 256
Lab_1_13.mat

14


N = 512
Lab_1_14.mat

15


N = 1024
Lab_1_15.mat

16


N = 2048
Lab_1_16.mat

17


N = 256
Lab_1_17.mat

18


N = 512
Lab_1_18.mat

19


N = 1024
Lab_1_19.mat

20


N = 2048
Lab_1_20.mat

̲ ²
.
.
˳ , , .
.
.
Ͳ
?
?
?
?
?
˲
1. . : . .: , 1995. 320 .
2. . . . .: , 2002. 608 .
3. . ., . ., . . MathCAD MATLAB: . : " ", 2000166 .