Main Content

delete

Delete circuit object and decouple its elements

    Description

    example

    delete(obj) deletes the circuit object obj and decouples its elements. You can use the decoupled elements in other circuit objects.

    Examples

    collapse all

    Create a circuit.

    hckt = circuit('new_circuit');

    Add a capacitor to the circuit.

    hC = capacitor(1e-12);
    add(hckt,[1 2],hC)

    Display the parent path.

    hC.ParentPath
    ans = 
    'new_circuit'
    

    Delete the circuit object and display the parent path.

    delete(hckt)
    hC.ParentPath
    ans =
    
      0x0 empty char array
    

    Reuse the capacitor hc.

    hckt = circuit('circuit_1');
    add(hckt,[1 2],hC)

    Input Arguments

    collapse all

    RF circuit, specified as a circuit object.

    Version History

    Introduced in R2022a