Capacitor Model

			
				% capacitor

				clear;
				clc;

				Rs = 0;
				Rp = 0;
				C = 10e-9; % 10nF
				L = 10e-9; % 10nH

				f = (1e3 : 1e4 : 1e9); % freq range and step
				w = 2 * pi * f;
				Zc = 1./(w * C );
				Zl = w * L;

				z = Rs + Zl + Zc; %(Zc*Rp)/(Zc+Rp);
				loglog (f, z);
				xlabel ('freq');
				ylabel('impedance');
				axis([100 10e9 1e-1 1e5]);
				fc = 1./sqrt(C * L);
				fprintf('fc = %e\n', fc);
			
		
© 2018 Copyright. For individual use only. No liability is accepted for any consequences of using information on Testips.com.