Group Delay of CT Filter in MATLAB

Status
Not open for further replies.

pancho_hideboo

Advanced Member level 5
Joined
Oct 21, 2006
Messages
2,847
Helped
767
Reputation
1,536
Reaction score
733
Trophy points
1,393
Location
Real Homeless
Activity points
17,490
We can use grpdelay() to evaluate group delay of Discrete Time Filter in MATLAB.
However as far as I know, there is no such function for Continuous Time Filter in MATLAB.

I use following my custom function for this purpose without using ArcTan().

Do you have more cool method ?

Code:
function [Gdelay, fout] = my_Gdelay(H, fin)
x = real(H(:));
y = imag(H(:));
df = diff(fin(:));
dx = diff(x);
dy = diff(y);
x = x(1:end-1);
y = y(1:end-1);

Gdelay = -(dy.*x-y.*dx)./(x.^2+y.^2)./(2*pi*df);
fout = fin(1:end-1);
 

Attachments

  • 190617-180837.png
    14 KB · Views: 61

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…