Solution:
MATLAB Program:
$\mathrm{Wp}=500 * 2 * \mathrm{pi}$;
$\mathrm{Ws}=1000 * 2 * \mathrm{pi} ;$
R p=0.5 ;
R s=50 ;
$
[\mathrm{N}, \mathrm{Wc}]=\operatorname{cheb} \operatorname{ord}(\mathrm{Wp}, \mathrm{Ws}, \mathrm{Rp}, \mathrm{Rs}, ' \mathrm{~s}$ ' $)
$
$
[\mathrm{B}, \mathrm{A}]=\operatorname{cheby} 1(\mathrm{~N}, \mathrm{Rp}, \mathrm{Wc}$, ' $\mathrm{s}$ ' $)
$
omega =[0: 1: 3 * W c];
$
\mathrm{h}=\operatorname{freqs}(\mathrm{B}, \mathrm{A}$, omega $) ;
$
plot (omega. / (2*pi), (abs (h)), 'm');
title('Chebyshev LPF Example 5.2');
$\mathrm{xlabel}$ ('Frequency in $\mathrm{Hz}$ '); ylabel ('Magnitude');