Sunteți pe pagina 1din 2

Uso de MatLab en filtros.

DIGITALES
[b,a] = butter(n,Wn) returns the transfer function
coefficients of an nth-order lowpass digital Butterworth
filter with normalized cutoff frequency Wn.
[b,a] = butter(n,Wn,ftype) designs a lowpass,
highpass, bandpass, or bandstop Butterworth digital
filter, depending on the value of ftype and the number
of elements of Wn. The resulting bandpass and
bandstop designs are of order 2n.
 'low' specifies a lowpass filter with cutoff frequency Wn. 'low' is the default for scalar Wn.
 'high' specifies a highpass filter with cutoff frequency Wn.
 'bandpass' specifies a bandpass filter of order 2n if Wn is a two-elementvector. 'bandpass' is the default when Wn has two elements.
 'stop' specifies a bandstop filter of order 2n if Wn is a two-element vector.
[z,p,k] = butter(___) designs a lowpass, highpass, bandpass, or
bandstop digital Butterworth filter and returns its zeros, poles, and gain.
This syntax can include any of the input arguments in previous syntaxes.
[h,w] = freqz(b,a,n) returns the n-point frequency response vector, h, and the corresponding angular frequency
vector, w, for the digital filter with numerator and denominator polynomial coefficients stored in b and a, respectively.

ANALOGOS
[___] = butter(___,'s') designs a lowpass, highpass, bandpass, or bandstop analog Butterworth filter with cutoff
angular frequency Wn.
[z,p,k] = buttap(n) returns the poles and gain of an
order n Butterworth analog lowpass filter prototype.
The function returns the poles in the length n column vector p and
the gain in scalar k. z is an empty matrix because there are no
zeros. The transfer function is:

Butterworth filters are characterized by a magnitude response that is maximally flat


in the passband and monotonic overall. In the lowpass case, the first 2n-1
derivatives of the squared magnitude response are zero at ω = 0. The squared
magnitude response function is corresponding to a transfer function with poles
equally spaced around a circle in the left half plane.

h = freqs(b,a,w) returns the complex frequency response of the analog filter specified by coefficient
vectors b and a. freqs evaluates the frequency response along the imaginary axis in the complex plane at the angular
frequencies in rad/s specified in real vector w, where w is a vector containing more than one frequency.
[h,w] = freqs(b,a,n) uses n frequency points to compute the frequency response, h, where n is a real, scalar value.
The frequency vector w is auto-generated and has length n.
If you omit n as an input, 200 frequency points are used. If you do not need the generated frequency vector returned, you
can use the form h = freqs(b,a,n) to return only the frequency response, h.
freqs with no output arguments plots the magnitude and phase response versus frequency in the current figure window.
freqs works only for real input systems and positive frequencies.
TRANSFORMACIONES
[b,a] = zp2tf(z,p,k) finds a rational transfer function given a system
in factored transfer function form

[z,p,k] = tf2zp(b,a) finds the matrix of zeros z, the vector of


poles p, and the associated vector of gains k from the transfer function
parameters b and a.

S-ar putea să vă placă și