Filter löschen
Filter löschen

Filter design resource recommendation

3 Ansichten (letzte 30 Tage)
Tsung-Ju Yang
Tsung-Ju Yang am 4 Jun. 2017
Beantwortet: Star Strider am 4 Jun. 2017
I am new to matlab filter design and I found the help file of matlab is a little not comple. For example, in the help file of Butterworth filter design. it said,
[A,B,C,D] = butter(___) designs a lowpass, highpass, bandpass, or bandstop digital Butterworth filter and returns the matrices that specify its state-space representation.
However I still do not know how to apply the matrices to signal I want to filter after I get the matrices.
Another example is the filter designer (fdatool.) In the file->Export there is option to export as "Object" or "System Object" but I do not know what is the difference between the two options.
I am wondering if there is a general matlab guide for filter design?

Akzeptierte Antwort

Star Strider
Star Strider am 4 Jun. 2017
You appear to be referencing the Signal ProcessingToolbox butter (link) function.
You do not filter with the state space representation of your filter. You must either use a designfilt (link) object, a transfer function, or preferably a second-order-section representation of your filter. Use the filtfilt (link) function to do the actual filtering.
I sent you some example code on the design and implementation of a Chebyshev Type II filter with your previous post, so I refer you to it and will not repost it here. The only changes you would need to make are to substitute the buttord function for the cheb2ord function, and the butter function for the cheby2 function to design and implement your Butterworth filter. The rest of the code remains the same.
For a general introduction, see Filtering Data With Signal Processing Toolbox Software. There are related discussions available as links on the Digital Filtering page.

Weitere Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by