Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Frequency:
Using Digital Filters
25.108 Introduction to Engineering
II
Dr. Jay Weitzen
0.8
0.6
0.4
>> time=0:0.001:5;
>> sin5=cos(time.*2*pi*5);
0.2
>> plot(time,sin5)
0
>> plot(time(1:1000),sin5(1:1000))
-0 . 2
>> SpectrumAnalyzer(sin5,1000)
-0 . 4
>>
-0 . 6
-0 . 8
-1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Time (sec)
0
-5 0
-1 0 0
Power
-1 5 0
-2 0 0
-2 5 0
-4 0 -2 0 0 2 0 4 0 6 0
F re q u e n c y (H z )
0.8
-0.2
-0.4
-0.6
10
-0.8
0
-1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
-10
-20
-30
Power
-40
-50
-60
-70
-80
-500 -400 -300 -200 -100 0 100 200 300 400 500
Frequency (Hz)
What does it do? Passes the frequencies you want and rejects those that
you do not want.
Pass
band
Filter
Compute
Type
Filter Button
Don’t touch this
c 2008 Dr. Jay Weitzen 18
Step 2: Enter Parameters
• Enter Sampling Frequency
• Pass Band
• Stop Band
• Leave Everything else the same
Create “Num”, and “Den”. If you have matlab 6.5, type “Den=1”
• Type