www.gusucode.com > rf 案例源码程序 matlab代码 > rf/FrequencyResponseOfAnLCResonatorExample.m
%% Frequency Response of an LC Resonator % This example creates a series LC resonator and examines its frequency % response. It first creates the circuit object and then uses the analyze % method to calculate its frequency response. Finally, it plots the % results - first, the magnitude in decibels (dB): %% % Copyright 2015 The MathWorks, Inc. h = rfckt.seriesrlc('L',4.7e-5,'C',2.2e-10); analyze(h,logspace(4,8,1000)); plot(h,'s21','dB') ax = gca; ax.XScale = 'log'; %% % The example then plots the phase, in degrees: figure plot(h,'s21','angle') ax = gca; ax.XScale = 'log';