add(cktobj,cktnodes,elem)
inserts a circuit element elem into a circuit
object cktobj. The terminals of the
elem are attached to the nodes
specified in cktnodes. If
elem is a Touchstone file name or
s-parameters object, an nport object is
created from input and added to
cktobj.
Circuit object into which the circuit element is inserted,
specified as scalar handle object. This circuit object can
be a new circuit or a nport object, or an already existing
circuit.
cktnodes — Circuit nodes vector of integers
Circuit nodes of the circuit object, specified as vector
of integers. The function uses this input argument to
attach the new element to the circuit.
elem — Circuit elements scalar handle objects
Circuit elements that are inserted into the circuit
object, specified as scalar handle objects. The element
can be a resistor, capacitor, inductor, Touchstone file
name, s-parameter object, or an entire circuit.
termorder — Element terminals cell vector
Element terminals, which are the cell vectors found in
Terminals property of
elem. These input arguments are
specified as scalar handle objects. .
Circuit elements, which are returned as scalar handle
objects, after using the add function. The function uses
any or all of the input arguments to create these circuit
elements.