audioBandwidthSpecification
Description
Examples
Use the audioBandwidthSpecification function to create a specification for a filter with a center frequency of 5000 Hz and a bandwidth of 500 Hz.
First, display the analog specifications.
spec = audioBandwidthSpecification(CenterFrequency=5000, ... Bandwidth=500,Domain="analog"); disp(spec)
CenterFrequency Bandwidth QualityFactor OctaveBandwidth CutoffFrequencies
_______________ _________ _____________ _______________ _________________
5000 500 10 0.14421 4756.2 5256.2
Then, display both the analog specification and the digital specification for a system with a sample rate of 16000 Hz.
spec = audioBandwidthSpecification(CenterFrequency=5000, ... Bandwidth=500,SampleRate=16000, ... Domain="analog and digital"); disp(spec)
CenterFrequency Bandwidth QualityFactor OctaveBandwidth CutoffFrequencies
_________________ _________________ _________________ __________________ ____________________________________
Analog Digital Analog Digital Analog Digital Analog Digital Analog Digital
______ _______ ______ _______ ______ _______ _______ _______ ________________ ________________
5000 5000 500 500 10 10 0.14421 0.14454 4756.2 5256.2 4744.9 5244.9
Input Arguments
Conversion options, specified as a comma-separated list of name-value arguments. You do not need to specify all possible name-value arguments.
Options
| Option | Type | Default |
|---|---|---|
CenterFrequency | 1-by-P vector of positive scalars | |
Bandwidth | 1-by-P vector of positive scalars | |
QualityFactor | 1-by-P vector of positive scalars | |
OctaveBandwidth | 1-by-P vector of positive scalars | |
CutoffFrequencies |
| |
Domain |
| "analog and digital" |
SampleRate | Positive scalar | 2 |
P is the number of designs.
You must specify some name-value with other name-value arguments:
CenterFrequencyandBandwidthCenterFrequencyandQualityFactorCenterFrequencyandOctaveBandwidth
Example: spec =
audioBandwidthSpecification(CenterFrequency=1000,SampleRate=16e3,Bandwidth=120)
Output Arguments
Conversion specifications, returned as a MATLAB table.
The output is a table displaying CenterFrequency,
Bandwidth, QualityFactor,
OctaveBandwidth, and CutoffFrequencies in analog
or digital form depending on the value specified by Domain.
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Version History
Introduced in R2026a
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.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- 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)