ECE 626 Project: Rishi Gupta
ECE 626 Project: Rishi Gupta
Rishi Gupta
School of Electrical Engineering and
Computer Science
Oregon State University
Matlab
Fs=10MHz
DC gain=0db
Fp=0~1MHz
1. Declare and analog filter. I set the cutoff to 5MHz (random choice).
[num,den]=butter(2,5e6,'low','s');
H=tf(num,den)
bode(H);
[numz,denz]=impinvar(num,den,10e6);
Hz=tf(numz,denz,100e-9)
3. Observe the discrete time charecteristics. Fvtool plots everything, I’ve olny
shown magnitude response and pole zero plot.
hz=fvtool(numz,denz);
Magnitude Response
Normalized Frequency: 0 Magnitude Response (dB)
0.5425
Magnitude (dB): -0.182093
-2.1581
-4.8588
-7.5594
-10.26
Magnitude (dB)
-12.9606
-15.6612
-18.3618
-21.0624
-23.7631
-26.4637
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9
Normalized Frequency ( rad/sample)
Pole-Zero Plot
Pole/Zero Plot
1.0997
0.8798
0.6598
0.4399
0.2199
Imaginary Part
-0.2199
-0.4399
-0.6598
-0.8798
-1.0997
-1.5 -1 -0.5 0 0.5 1 1.5 2
Real Part
Converting TF to circuit.
Transfer function:
0.1719 z
Hz= ---------------------------
z^2 - 1.318 z + 0.4931