主要内容

circuit

Circuit object

Description

采用circuit对象构建一个电路对象,该对象可以包含电阻器,电容器和电感器等元素。

Creation

Description

example

cktobj =电路creates a circuit objectcktobj使用默认名称。

cktobj =电路(cktname)creates a circuit objectcktobjwith name ofcktname.

example

cktobj =电路([elem1,......,谎言])creates a circuit objectcktobjby cascading the specified 2-port elements.

cktobj =电路([elem1,......,谎言],cktname)creates a cascaded circuit objectcktobjwith the name,cktname.

cktobj =电路(rfb)creates a circuit objectcktobj通过级联RF对象中的元素,rfb

cktobj =电路(rfb,cktname)creates a circuit objectcktobj通过级联RF对象中的元素,rfb, using name,cktname.

Input Arguments

expand all

2端口RF元素,指定为字符向量。可能的元素是放大器,纳沃, 和modulator

RF预算对象,指定为对象句柄。

Properties

expand all

电路的名称,指定为字符向量。默认名称是“未命名”。连接在一起或属于同一电路的两个电路元件不能具有相同的名称

Data Types:char|string

Heterogeneous array of elements present in the circuit, specified as any one of the following objects:放大器,resistor,capacitor,我nductor,莱斯德,纳沃,modulator, 和rffilterobjects.

Data Types:char|string

Name of elements in the circuit, specified as a vector of cell vector. The possible elements here are resistor, capacitor, inductor, and circuit.

Data Types:char|string

电路中的终端名称,指定为单元格向量。采用setports.要么setterminalsfunction to define the terminals. The terminals of the circuit are only displayed once it is defined.

Data Types:char|string

Names of ports in a circuit specified as a character vector. Usesetports.函数来定义端口。电路的端口仅显示一旦定义。

Data Types:char|string

List of nodes defined in the circuit, specified as a vector of integers. These nodes are created when a new element is attached to the circuit.

Data Types:double

Full path of parent circuit, specified as a character vector. This path appears only once the child circuit is added to the parent circuit.

Data Types:char|string

Nodes of parent circuit, specified as a vector of integers. This vector of integers is the same length as the终端property. This property is read-only and appears only after the child circuit is added to the parent circuit.

Data Types:double

Object Functions

sparameters Calculate S-parameters for RF data, network, circuit, and matching network objects
groupdelay 组延迟S参数对象或RF过滤器对象或RF Toolboxcircuit object
add Insert circuit element or circuit object into circuit
删除 Delete circuit object and decouple its elements
setports. 设置电路对象的端口
setterminals Set terminals of circuit object
clone 创建现有电路元件或电路对象的副本
richards Convert lumped element circuit to distributed element circuit using Richards' transformation

Examples

collapse all

Create a circuit called new_circuit. Add a resistor and capacitor to the circuit. Set the terminals and display the results.

hckt = circuit('new_circuit1');HC1 = Add(HCKT,[112],电容器(3E-9));HR1 = Add(HCKT,[2 3],电阻(100));Setterminals(HCKT,[1 3]);DISP(HCKT)
circuit: Circuit element ElementNames: {'C' 'R'} Elements: [1x2 rf.internal.circuit.RLC] Nodes: [1 2 3] Name: 'new_circuit1' Terminals: {'t1' 't2'}

Create a circuit called new_circuit. Add a capacitor and inductor parallel to the circuit.

hckt = circuit('new_circuit');hC = add(hckt,[1 2],capacitor(1e-12)); hL = add(hckt,[1 2],inductor(1e-9)); disp(hckt)
circuit: Circuit element ElementNames: {'C' 'L'} Elements: [1x2 rf.internal.circuit.RLC] Nodes: [1 2] Name: 'new_circuit'

Version History

介绍在R2013B.