getFilters
Description
returns the individual filter objects for each band in the filters
= getFilters(crossFilt
)crossoverFilter
object.
Examples
Get Band Filters from crossoverFilter
Object
Create a crossoverFilter
object with 2 crossovers (3 bands), crossover frequencies at 500 Hz and 1 kHz, and a slope of 18 dB/octave.
fs = 44100; crossFilt = crossoverFilter( ... NumCrossovers=2, ... CrossoverFrequencies=[500,1000], ... CrossoverSlopes=18, ... SampleRate=fs);
Call the getFilters
function on the object to get the individual band filter objects.
filters = getFilters(crossFilt)
filters=1×3 cell array
{1x1 dsp.FilterCascade} {1x1 dsp.FilterCascade} {1x1 dsp.FilterCascade}
Use filterAnalyzer
to view and analyze the individual filters that make up the crossoverFilter
object.
filterAnalyzer(filters{1},filters{2},filters{3}, ... SampleRates=fs, ... FrequencyScale="log", ... FilterNames=["Band1","Band2","Band3"])
Input Arguments
crossFilt
— Crossover filter object
crossoverFilter
object
Crossover filter, specified as a crossoverFilter
object.
Output Arguments
filters
— Band filters
cell array of filter objects
Band filters of the crossover filter specified by crossFilt
,
specified as a cell array of N+1 filter objects, where N is NumCrossovers. The filter objects are returned as dsp.SOSFilter
or
dsp.FilterCascade
objects. See Algorithms for more information
about the design of the band filters.
Version History
Introduced in R2024b
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)