% -------------------------------------------------------
% ECE2311D10 27-Apr-2010
% Sallen-Key filter demo 
% -------------------------------------------------------
% USER PARAMETERS
% -------------------------------------------------------
alpha = 1;                  % SK filter parameter
omega0 = 2*pi;              % SK filter parameter
Tfinal = 10;                % simulation duration
% -------------------------------------------------------

num = [0 0 omega0^2];       % numerator of transfer function
den = [1 2*alpha omega0^2]; % denominator of transfer function

H = tf(num,den);            % make transfer function
impulse(H,Tfinal);          % plot impulse response

