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

    %% Add Capacitor to Circuit and Display Properties
% Add capacitor to a circuit, display the parent path and parent nodes. 

% Copyright 2015 The MathWorks, Inc.


hC3 = capacitor(3e-6,'C3uf');
hckt3 = circuit('example3');
add(hckt3,[1 2],hC3)
setports(hckt3, [1 0],[2 0])
disp(hC3)