uW_S2H — Scattering parameter matrix to Hybrid matrix convertion for 2 ports matrix.
H=uW_S2H(S)
tlist containing the S parameters.
tlist containing the H parameters calculated from the S parameters.
This function convert a S parameter object into a H parameter one. It works only for 2 ports devices (S2P).
filename="transistor.s2p"; S=uW_S2P_read(filename); // === Trace for ft subplot(211); H=uW_S2H(S); plot2d(H.frequency,20*log10(abs(H.H21)),logflag="ln") a=gca(); a.x_label.text="Frequency(Hz)"; a.y_label.text="H21(dB)"; // === Trace for Fmax subplot(212); M=abs(S.S21)./abs(S.S12); plot2d(H.frequency,10*log10(abs(M)),logflag="ln") a=gca(); a.x_label.text="Frequency(Hz)"; a.y_label.text="MSG(dB)";