insertUnitElement
Description
Examples
Insert Unit Elements on Circuit
Create a lowpass LC-Pi Chebyshev filter with a passband frequency of 1 GHz, a passband attenuation of 0.5 dB, and a filter order of 5.
Fp = 1e9; Ap = 0.5; Ord = 5; r = rffilter(FilterType="Chebyshev",ResponseType="Lowpass",Implementation="LC Pi",PassbandFrequency= ... Fp,PassbandAttenuation=Ap,FilterOrder=Ord);
Convert the lumped elements of the RF filter to a distributed element using Richards' transformation.
ri = richards(r,1e9)
ri = circuit: Circuit element ElementNames: {'C_tx' 'L_tx' 'C_1_tx' 'L_1_tx' 'C_2_tx'} Elements: [1x5 txlineElectricalLength] Nodes: [0 1 2 3 4 5 6] Name: 'unnamed'
Insert a unit element at the edges of the circuit ri
and the first circuit element C_tx
at port 1
, which operates at 1 GHz and has a characteristic impedance of 50 ohms.
unitEle = insertUnitElement(ri,'C_tx',1,1e9,50)
unitEle = circuit: Circuit element ElementNames: {'C_tx_p1_elem_UE' 'C_tx' 'L_tx' 'C_1_tx' 'L_1_tx' 'C_2_tx'} Elements: [1x6 txlineElectricalLength] Nodes: [0 1 2 3 4 5 6 7] Name: 'unnamed'
Insert a unit element at the edges of the circuit unitEle
and the last circuit element C_2_tx
at port 2
, which operates at 1 GHz and has a characteristic impedance of 50 ohms.
unitEle = insertUnitElement(unitEle,'C_2_tx',2,1e9,50)
unitEle = circuit: Circuit element ElementNames: {'C_tx_p1_elem_UE' 'C_tx' 'L_tx' 'C_1_tx' 'L_1_tx' 'C_2_tx' 'C_2_tx_p2_elem_UE'} Elements: [1x7 txlineElectricalLength] Nodes: [0 1 2 3 4 5 6 7 8] Name: 'unnamed'
Apply Kuroda's transformation on the group of two elements.
outObj = kuroda(unitEle,'C_tx_p1_elem_UE','C_tx')
outObj = circuit: Circuit element ElementNames: {'Kuroda2_R2L_of_C_tx_p1_elem_UE' 'Kuroda2_R2L_of_C_tx' 'L_tx' 'C_1_tx' 'L_1_tx' 'C_2_tx' 'C_2_tx_p2_elem_UE'} Elements: [1x7 txlineElectricalLength] Nodes: [0 1 2 3 4 5 6 7 8] Name: 'unnamed'
Input Arguments
cktIn
— RF circuit object
circuit
object
RF circuit object, specified as a circuit
object. Before
inserting the unit element you must first apply Richards' transformation.
cktElem
— Circuit element
index in circuit | element names
Circuit element, specified as an index in the circuit or element names. The function inserts the unit element in a port of the circuit element you specify.
elePort
— Port number
positive scalar
Port number of the circuit element for inserting the unit element, specified as a positive scalar.
opFreq
— Operating frequency
positive scalar
Operating frequency at which the unit element is defined with LineLength =
pi/4
radians, specified as a positive scalar.
Z0
— Characteristic impedance
positive scalar
Characteristic impedance of the unit element, specified as a positive scalar.
Output Arguments
unitEle
— Unit element
cktIn
object
Unit element, returned as a cktIn
object. The output is a
circuit similar to cktIn
, but with a unit element inserted.
The unit element is placed at the port elePort
of the element
of the circuit, cktElem
. If cktElem
is empty,
0
or numel(INOBJ.Elements)+1
, the unit element
is inserted at a port of the circuit cktIn
itself.
Version History
Introduced in R2021b
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes 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)