Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Group Delay of CT Filter in MATLAB

Status
Not open for further replies.

pancho_hideboo

Advanced Member level 5
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
    190617-180837.png
    14 KB · Views: 81

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top