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

    %% Create Circuit with Two Parallel Elements 
% Create a circuit called new_circuit. Add a capacitor and inductor
% parallel to the circuit.

% Copyright 2015 The MathWorks, Inc.


hckt = circuit('new_circuit');
hC = add(hckt,[1 2],capacitor(1e-12));
hL = add(hckt,[1 2],inductor(1e-9));
disp(hckt)