getBranches
Return internal allpass branches
Syntax
Description
returns copies of the internal allpass branches as a two-field structure,
s = getBranches(caf)s. Each branch is an instance of dsp.AllpassFilter.
Examples
Get the internal allpass branches of the dsp.CoupledAllpassFilter System object™.
Minimum Multiplier
Create a dsp.CoupledAllpassFilter object with filter structure set to 'Minimum multiplier'. Use the getBranches function to get the internal allpass filter objects.
caf = dsp.CoupledAllpassFilter
caf =
dsp.CoupledAllpassFilter with properties:
Structure: 'Minimum multiplier'
PureDelayBranch: 0
AllpassCoefficients1: {[0 0.5000]}
AllpassCoefficients2: {[]}
Gain1: '1'
Gain2: '1'
s = getBranches(caf)
s = struct with fields:
Branch1: [1×1 dsp.internal.LegacyAllpassFilter]
Branch2: [1×1 dsp.internal.LegacyAllpassFilter]
s.Branch1
ans =
dsp.internal.LegacyAllpassFilter with properties:
AllpassCoefficients: {[0 0.5000]}
Structure: 'Minimum multiplier'
InitialConditions: 0
s.Branch2
ans =
dsp.internal.LegacyAllpassFilter with properties:
AllpassCoefficients: {[]}
Structure: 'Minimum multiplier'
InitialConditions: 0
Wave Digital Filter
Change the filter structure to 'Wave Digital Filter'. The internal allpass filters display WDF coefficients.
caf.Structure = 'Wave Digital Filter'caf =
dsp.CoupledAllpassFilter with properties:
Structure: 'Wave Digital Filter'
PureDelayBranch: 0
WDFCoefficients1: {[0.5000 0]}
WDFCoefficients2: {[]}
Gain1: '1'
Gain2: '1'
s = getBranches(caf)
s = struct with fields:
Branch1: [1×1 dsp.internal.LegacyAllpassFilter]
Branch2: [1×1 dsp.internal.LegacyAllpassFilter]
s.Branch1
ans =
dsp.internal.LegacyAllpassFilter with properties:
WDFCoefficients: {[0.5000 0]}
Structure: 'Wave Digital Filter'
InitialConditions: 0
s.Branch2
ans =
dsp.internal.LegacyAllpassFilter with properties:
WDFCoefficients: {[]}
Structure: 'Wave Digital Filter'
InitialConditions: 0
Lattice
When the filter structure is set to 'Lattice', the internal allpass filters display the lattice coefficients.
caf.Structure = 'Lattice'caf =
dsp.CoupledAllpassFilter with properties:
Structure: 'Lattice'
PureDelayBranch: 0
LatticeCoefficients1: {[0 0.5000]}
LatticeCoefficients2: {[]}
Beta: 1
Gain1: '1'
Gain2: '1'
ComplexConjugateCoefficients: 0
s = getBranches(caf)
s = struct with fields:
Branch1: [1×1 dsp.internal.LegacyAllpassFilter]
Branch2: [1×1 dsp.internal.LegacyAllpassFilter]
s.Branch1
ans =
dsp.internal.LegacyAllpassFilter with properties:
LatticeCoefficients: {[0 0.5000]}
Structure: 'Lattice'
InitialConditions: 0
s.Branch2
ans =
dsp.internal.LegacyAllpassFilter with properties:
LatticeCoefficients: {[]}
Structure: 'Lattice'
InitialConditions: 0
Input Arguments
Input filter object, specified as a dsp.CoupledAllpassFilter
System object™.
Output Arguments
Internal allpass branches, returned as a two-field structure. The two fields contain
instances of the dsp.AllpassFilter System objects representing the two
individual branches of the dsp.CoupledAllpassFilter object.
Version History
Introduced in R2013b
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.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- 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)