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.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.
América
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- 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)