Resonator voltage reflection coefficient
Gamma = resonatorfunc(nu,nu0,Qu,beta) resonatorfunc(...)
This function computes the resonator voltage reflection coefficient. nu is the frequency range vector, in GHz, over which it is computed. If it is empty, an appropriate range is chose automatically. nu0 is the resonator resonance frequency in GHz. Qu is the unloaded Q-factor of the resonator. beta is the coupling coefficient: 1 for critical coupling (matched), less than 1 for undercoupling, and greater than 1 for overcoupling.
Gamma is the voltage reflection coefficient. This is the ratio of the E-fields of the reflected wave and the incoming wave. The power reflection coefficient is abs(Gamma).^2.
If no output is requested, resonatorfunc plots the results.
Here is a simple example
nu = linspace(9.2,9.8,1001); % GHz nu0 = 9.5; % GHz Qu = 1000; beta = 1; resonatorfunc(nu,nu0,Qu,beta);
To plot the power reflection coefficient on a logarithmic dB scale, use
G = resonatorfunc(nu,nu0,Qu,beta);
P_refl = abs(G).^2;
plot(nu,10*log10(P_refl));
xlabel('frequency (GHz)');
ylabel('reflected power (dB)');