main content

create matching network for 1-凯发k8网页登录

create matching network for 1-port network and generate circuit object

since r2019a

description

use the matchingnetwork object to create a matching network circuit for a 1-port network which match the impedance of given source to the impedance of given load at a specified center frequency. the matchingnetwork object stores the generated network as a circuit object in the circuit property. the function could be also used to export the selected circuit(s) generated.

you can use matching network designer app to design, visualize, and compare matching networks for one-port load. for more information, see .

creation

description

example

matchnet = matchingnetwork creates a matching network object with default property values.

example

matchnet = matchingnetwork(name,value) sets properties using one or more name-value pairs. for example, matchnet = matchingnetwork('sourceimpedance','60') creates a matching network with a source impedance of 60 ohms.

properties

source impedance as seen at the terminals looking from the network into the source, specified as one of the following:

  • constant complex scalar in ohms

  • sparameters object

  • object

  • object

  • file name of a touchstone file

  • one-port circuit object

  • antenna toolbox™ antenna object

  • function handle to a function that computes an impedance list from a frequency list

example: 'sourceimpedance',60

example: matchnet.sourceimpedance = 60

example: 'sourceimpedance','default.s1p'

data types: double | char | string | function_handle

load impedance as seen at the terminals looking from the matching network into the load, specified as one of the following:

  • constant complex scalar in ohms

  • sparameters object

  • object

  • object

  • file name of a touchstone file

  • one-port circuit object

  • antenna toolbox antenna object

  • function handle to a function that computes an impedance list from a frequency list

example: 'loadimpedance',60

example: matchnet.loadimpedance = 60

data types: double | char | string | function_handle

frequency to calculate the impedance match between the source and the load, specified as a real positive scalar in hertz

example: 'centerfrequency',1e9

example: matchnet.centerfrequency = 1e9

data types: double

desired bandwidth (transducer gain >= minus 3 db over this bandwidth centered on centerfrequency), specified as a real positive scalar in hertz.

example: 'bandwidth',100e6

example: matchnet.bandwidth = 100e6

data types: double

desired loaded quality factor, specified as a real positive scalar. setting loadedq updates the bandwidth. if you specify centerfrequency, loadedq is recalculated from centerfrequency and bandwidth.

example: 'loadedq',2

example: matchnet.loadedq = 2

data types: double

note

the addition of a third element introduces an added degree of freedom allowing you to control the loadedq property. hence, the bandwidth and the loadedq are hidden when there are two components. for more information please see, [1].

number of components or type of topology for the matching network design, specified as 2 or 3 for the number of components and 'pi', 'tee', or, 'l' for the type of topology.

example: 'components','pi'

example: matchnet.components = 'pi'

data types: double | char | string

an array of circuit objects containing possible matching network designs for the given set of parameters.

note

this is a read-only property.

object functions

adds performance goal for sort, pass, or fail matching network design
tables describing each created matching network's topology and performance
table of evaluation parameters currently used to rank and pass or fail matching network designs
delete one or more performance goals
select and export generated matching networks as circuit objects from an existing matching network object
plot input reflection coefficient and transducer gain of matching network
plot measurement data on smith chart
sparameterscalculate s-parameters for rf data, network, circuit, and matching network objects

examples

create a default matching network using the object, matchingnetwork.

matchnet = matchingnetwork
matchnet = 
  matchingnetwork with properties:
       sourceimpedance: 50 ohms
         loadimpedance: 50 ohms
       centerfrequency: 1 ghz
            components: 2
               circuit: [1x2 circuit]

create a matching network with source impedance, 100 ohms, load impedance, 75 ohms, center frequency, 2 ghz, desired loaded quality factor, 5, and the number of components, 3.

mnobj = matchingnetwork('sourceimpedance',100,'loadimpedance',...
    75,'centerfrequency',2e9,'loadedq',5,'components',3)
mnobj = 
  matchingnetwork with properties:
       sourceimpedance: 100 ohms
         loadimpedance: 75 ohms
       centerfrequency: 2 ghz
             bandwidth: 400 mhz
            components: 3
               loadedq: 5
               circuit: [1x8 circuit]

display the list of matching network circuits generated and their corresponding performance

[circuit_list, performance] = circuitdescriptions(mnobj)
circuit_list=8×7 table
                 circuitname    component1type    component1value    component2type    component2value    component3type    component3value
                 ___________    ______________    _______________    ______________    _______________    ______________    _______________
    circuit 1     "auto_2"        "shunt c"         3.9789e-12         "series l"        2.1389e-10         "shunt l"         1.3876e-09   
    circuit 2     "auto_7"        "series c"        1.8501e-13         "shunt c"         2.8519e-14         "series l"        2.9842e-08   
    circuit 3     "auto_3"        "shunt l"         1.5915e-09         "series c"        2.9607e-11         "shunt c"         4.5637e-12   
    circuit 4     "auto_6"        "series l"        3.4228e-08         "shunt l"         2.2205e-07         "series c"        2.1221e-13   
    circuit 5     "auto_1"        "shunt c"         3.9789e-12         "series l"        2.8468e-09         "shunt c"         4.5637e-12   
    circuit 6     "auto_5"        "series l"        3.4228e-08         "shunt c"         3.7957e-13         "series l"        2.9842e-08   
    circuit 7     "auto_4"        "shunt l"         1.5915e-09         "series c"        2.2245e-12         "shunt l"         1.3876e-09   
    circuit 8     "auto_8"        "series c"        1.8501e-13         "shunt l"         1.6684e-08         "series c"        2.1221e-13   
performance=8×4 table
                 circuitname    evaluationpassed    testsfailed     performancescore
                 ___________    ________________    ____________    ________________
    circuit 1     "auto_2"         {["yes"]}        {0×0 double}      {[ 1.9447]}   
    circuit 2     "auto_7"         {["yes"]}        {0×0 double}      {[ 1.9447]}   
    circuit 3     "auto_3"         {["yes"]}        {0×0 double}      {[ 1.9443]}   
    circuit 4     "auto_6"         {["yes"]}        {0×0 double}      {[ 1.9443]}   
    circuit 5     "auto_1"         {["no" ]}        {[       1]}      {[-0.1254]}   
    circuit 6     "auto_5"         {["no" ]}        {[       1]}      {[-0.1254]}   
    circuit 7     "auto_4"         {["no" ]}        {[       1]}      {[-0.6947]}   
    circuit 8     "auto_8"         {["no" ]}        {[       1]}      {[-0.6947]}   

plot the frequency response of the best circuit (circuit #1) between 0.5 ghz and 2.5 ghz.

frequencies     = linspace(0.5e9,2.4e9);
circuitindex    = 1; % best circuit is sorted to the top
rfplot(mnobj,frequencies,circuitindex)

plot impedance transformation for the best matching network generated (circuit#1). for more information, see .

smithplot(mnobj)

to export a selected matching network circuit, for example, circuit #5:

circuitindex    = 5;
mn_circuit      = mnobj.circuit(circuitindex)
mn_circuit = 
  circuit: circuit element
    elementnames: {'c'  'l'  'c_1'}
        elements: [1×3 rf.internal.circuit.rlc]
           nodes: [1 2 3]
            name: 'unnamed'
        numports: 2
       terminals: {'p1 '  'p2 '  'p1-'  'p2-'}

alternatively, use exportcircuits(m,circuitindex).

show the default evaluation parameters used by the matching network.

ep = getevaluationparameters(mnobj)
ep=1×6 table
    parameter    comparison     goal         band        weight       source    
    _________    __________    ______    ____________    ______    _____________
     {'gt'}        {'>'}       {[-3]}    {1×2 double}    {[1]}     {'automatic'}

add a new evaluation parameter and plot the frequency response of circuit #1.

mnobj = mnobj.addevaluationparameter('gammain','>',-2,[0.5e9 1.5e9],1)
mnobj = 
  matchingnetwork with properties:
       sourceimpedance: 100 ohms
         loadimpedance: 75 ohms
       centerfrequency: 2 ghz
             bandwidth: 400 mhz
            components: 3
               loadedq: 5
               circuit: [1x8 circuit]
rfplot(mnobj,frequencies,1)

create a dipole antenna and create the s-parameters of the antenna. this example requires antenna toolbox.

d       = dipole('length', 0.103, 'width',0.0022);
freq    = linspace(0.5e9,2.5e9,1001);
sd      = sparameters(d, freq);

alternatively, load s-parameters from the mat file

% load('sparams_dipole.mat')

create a matching network from the s-parameters.

n = matchingnetwork('loadimpedance',sd,'components',3,...
    'loadedq',7,'centerfrequency',2e9);

get the evaluation parameters of the network.

t = getevaluationparameters(n)
t=1×6 table
    parameter    comparison     goal               band               weight       source    
    _________    __________    ______    _________________________    ______    _____________
     {'gt'}        {'>'}       {[-3]}    {[1.8571e 09 2.1429e 09]}    {[1]}     {'automatic'}

plot the reflection coefficient and transducer gain of the matching network circuit 1 , at a frequency range of 1 ghz to 2.5 ghz.

rfplot(n, (1e9:0.001e9:2.5e9),1);

figure circuit 1 contains an axes object. the axes object with title performance for circuit 1 ('auto_2') (passed), xlabel frequency (ghz), ylabel magnitude (db) contains 3 objects of type line, rectangle. these objects represent circuit 1: |gammain|, db, circuit 1: |gt|, db.

add a new evaluation parameter to compare the transducer gain to have a cut-off of less than -10 db. use a frequency range of 0.5 ghz to 1.5 ghz. plot the comparisons.

n = addevaluationparameter(n, 'gt', '<', -10, [0.5e9 1.5e9], 1);
t = getevaluationparameters(n)
t=2×6 table
    parameter    comparison     goal                band               weight          source      
    _________    __________    _______    _________________________    ______    __________________
     {'gt'}        {'>'}       {[ -3]}    {[1.8571e 09 2.1429e 09]}    {[1]}     {'automatic'     }
     {'gt'}        {'<'}       {[-10]}    {[ 500000000 1.5000e 09]}    {[1]}     {'user-specified'}
rfplot(n, (1e9:0.001e9:2.5e9),1);

figure circuit 1 contains an axes object. the axes object with title performance for circuit 1 ('auto_8') (passed), xlabel frequency (ghz), ylabel magnitude (db) contains 4 objects of type line, rectangle. these objects represent circuit 1: |gammain|, db, circuit 1: |gt|, db.

clear evaluation parameters.

n = clearevaluationparameter(n,1);
t = getevaluationparameters(n)
t=1×6 table
    parameter    comparison     goal                band              weight          source      
    _________    __________    _______    ________________________    ______    __________________
     {'gt'}        {'<'}       {[-10]}    {[500000000 1.5000e 09]}    {[1]}     {'user-specified'}

this example shows how to calculate the s-parameters for a newly created matching network for the auto-generated circuit #2 with a reference impedance of 100 ohm.

n       = matchingnetwork('loadimpedance',100,'components',3);
freq    = linspace(n.centerfrequency-n.bandwidth/2,n.centerfrequency n.bandwidth/2);
refz0   = 100;
ckt_no  = 2;
s       = sparameters(n,freq,refz0,ckt_no)
s = 
  sparameters: s-parameters object
       numports: 2
    frequencies: [100x1 double]
     parameters: [2x2x100 double]
      impedance: 100
  rfparam(obj,i,j) returns s-parameter sij

references

[1] ludwig, reinhold, and gene bogdanov. rf circuit design: theory and applications. prentice-hall, 2009.

[2] bowick, chris, et al. rf circuit design. 2nd ed, 2008.

version history

introduced in r2019a

网站地图