Rank: 4822 based on 3 downloads (last 30 days) and 1 file submitted
photo

Marcos López

E-mail
Company/University
University of Puerto Rico

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Marcos
Updated   File Tags Downloads
(last 30 days)
Comments Rating
31 Mar 2009 Screenshot Group delay Calculates and plots the group delay for an s domain system. Author: Marcos López group delay, bode, simulation 3 1
  • 1.0
1.0 | 1 rating
Comments and Ratings on Marcos' Files
Updated File Comment by Comments Rating
01 Apr 2009 Group delay Calculates and plots the group delay for an s domain system. Author: Marcos López Hanselman, Duane

Here is what is in this submission:
function groupDelay = groupDelaytf(SYS,varargin)
freqScale = 'rad/s';
if nargin > 2
    disp('Too many input arguments!');
    groupDelay = [];
    return
elseif nargin > 1
    freqScale = varargin{1};
end
sk = 2*pi;
if strcmp(freqScale,'Hz') || strcmp(freqScale,'hz')
    sk = 1;
end
[M,P,w] = bode(SYS);
w = linspace(w(1),w(end),length(w)*1000)/(sk);
[M,P] = bode(SYS,w*2*pi);
P = P(:)';
groupDelay = -gradient(P,w)/360;
grid on
semilogx(w*sk,groupDelay)
return

Top Tags Applied by Marcos
bode, group delay, simulation
Files Tagged by Marcos
Updated   File Tags Downloads
(last 30 days)
Comments Rating
31 Mar 2009 Screenshot Group delay Calculates and plots the group delay for an s domain system. Author: Marcos López group delay, bode, simulation 3 1
  • 1.0
1.0 | 1 rating

Contact us at files@mathworks.com