cost
Implementation cost of the complex bandpass decimator
Syntax
Description
Examples
Compute Cost of Complex Bandpass Decimator
Compute the implementation cost of a complex bandpass decimator using the cost
function.
Create a dsp.ComplexBandpassDecimator
object. Set the DecimationFactor
to 12, center frequency to 0.2, and the NormalizedFrequency
to true
.
cbp = dsp.ComplexBandpassDecimator(12,0.2,NormalizedFrequency=true)
cbp = dsp.ComplexBandpassDecimator with properties: CenterFrequency: 0.2000 Specification: 'Decimation factor' DecimationFactor: 12 StopbandAttenuation: 80 TransitionWidth: 0.0045 MinimizeComplexCoefficients: true NormalizedFrequency: true
Compute the implementation cost of cbp
using the cost
function.
c = cost(cbp)
c = struct with fields:
NumCoefficients: 201
NumStates: 379
RealMultiplicationsPerInputSample: 44.3333
RealAdditionsPerInputSample: 43.8333
Input Arguments
cbd
— Filter System object™
dsp.ComplexBandpassDecimator
dsp.ComplexBandpassDecimator
Filter System object, specified as a dsp.ComplexBandpassDecimator
System object.
Output Arguments
c
— Cost estimate
structure
Cost estimate containing these fields:
Estimated Value | Description |
---|---|
| Number of filter coefficients (excluding coefficients with values 0, 1 or –1) |
| Number of filter states |
| Number of real multiplication operations performed for each input sample |
| Number of real addition operations performed for each input sample |
The function assumes that a complex-by-complex multiplication requires 3 real multiplications and 5 real additions.
Version History
Introduced in R2018a
Comando de MATLAB
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
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)