No BSD License  

Highlights from
MATLAB for Engineers

from MATLAB for Engineers by Adrian Biran
Companion Software

ch16ex12.m
% Chapter 16 Exercise 12.
[b,a]=butter(5, 0.5);

Ts = 1/100; f=25; x=sin(2*pi*f*Ts*(1:500));

Zi=filteric(b, a, x, zeros(5,1));
y = filter(b,a,x, Zi);
plot(y(1:30));

Contact us at files@mathworks.com