www.gusucode.com > rf 案例源码程序 matlab代码 > rf/AddElementToCircuitExample.m

    %% Add Element to Circuit
% Create a resistor, and add it to a circuit.
hR1 = resistor(50);
hckt1 = circuit('new_circuit1');
add(hckt1,[1 2],hR1)
disp(hR1)
disp(hckt1)