Main Content

copy

Copy circuit or data object

Description

example

h2 = copy(h) returns a copy of the circuit, data, or network parameter object h.

Note

The syntax h2 = h copies only the object handle and does not create an object.

Examples

collapse all

Copy a circuit object to represent the cascaded amplifier.

FirstCkt = rfckt.txline;
SecondCkt = rfckt.amplifier;
ThirdCkt = copy(FirstCkt);

Create a cascaded circuit object.

CascadedCkt = rfckt.cascade('Ckts', {FirstCkt,SecondCkt,ThirdCkt})
CascadedCkt = 
   rfckt.cascade with properties:

              Ckts: {1x3 cell}
             nPort: 2
    AnalyzedResult: []
              Name: 'Cascaded Network'

Input Arguments

collapse all

RF object, specified as a circuit, data, or network parameter object.

Output arguments

collapse all

RF object handle, returned as a circuit, data, or network parameter object.

Alternatives

The syntax h2 = h copies only the object handle and does not create an object.

Introduced before R2006a