how "bode" calculate the phase of transfer function?
2 views (last 30 days)
Show older comments
There is a moving average filter:
in s and z domain:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/210597/image.png)
their magnitude- w and phase -w characteristic are as follows:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/210598/image.png)
it can be seen that if
, then the second formula of (1) converges to the first one.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/210599/image.png)
thus their phase-w curves should be the same.
however.
T = 5e-5;
N = 400;
Tw = N*T;
s = tf('s');
z = tf('z',T);
G = (1-exp(-Tw*s))/(Tw*s);
G2 = (1-z^(-N))/(1-z^(-1))/N;
bode(G,G2)
legend('continus','discrete')
![untitled.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/210600/untitled.png)
the phase of G2 is much higher than G1.
So how "bode" calculate the phase? and is the figure is right if I didnt restrict the phase in[-180,180].
Is the phase pi/4 - 5*2*pi equal to pi/4 ?
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!