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

    %% Create and Extract S-parameters of a Capacitor
% Create a capacitor and extract S-parameters of the capacitor. 

% Copyright 2015 The MathWorks, Inc.


hC = capacitor(2e-6,'C2uf');
hckt = circuit('example2');
add(hckt,[1 2],hC)
setports(hckt, [1 0],[2 0])
freq = linspace(1e3,2e3,100);
S = sparameters(hckt,freq);
disp(S)