import **signals.filters.iir-1**

Design Chebyshev type 1 IIR filter with Matlab-like syntax.

import signals.filters.iir-1;

Chebyshev 1 digital filter design

```
filt=cheby1(
```*4*,*1dB*,*0.3*[*0.3,0.7*],"")

n | The order of filter. |

Rp | Passband ripple. |

Wn | The relative corner frequency. |

return value | Transfer function object. |

The function can be used in several ways:

- cheby1(n,Rp,Wn) - Design an n pole lowpass or bandpass Chebysev type 1 filter with Rp passband ripple, corner frequency Wn (scalar or 2 element vector).
- cheby1(n,Rp,Wn,type) - Design an n pole lowpass, highpass, bandpass, or bandstop Chebysev type 1 filter with Rp passband ripple, corner frequencies specified by Wn (scalar or 2 element vector).
- cheby1(...,'s') - If 's' is added to the end of the function, an analog filter will be designed.

- lowpass, highpass - A scalar value representing the corner frequency of the filter.
- bandpass, bandstop - A 2-element vector representing the corner frequencies: [Wn1 Wn2]. Wn1 < Wn2.

The parameter *type* is a string value describing the filter type:

*"low"*: lowpass (you can omit*type*)*"high"*: highpass*"bandpass"*: bandpass (you can omit*type*)*"stop"*: bandstop

import signals.filters.iir-1;

Chebyshev 1 digital filter design

```
filt=cheby1(
```*4*,*1dB*,*0.3*[*0.3,0.7*],"")

import signals.filters.iir-1;

Chebyshev 1 analog filter design

```
filt=cheby1(
```*4*,*1dB*,*0.3*[*0.3,0.7*],"","s")

import signals.filters.iir-1;

Plot filter characteristics

```
filt.plot()
```