% read and plot s-parameters from .s2p file.
% .s2p format signifies s-parameters of 2-port circuit.

amp = read(rfckt.amplifier, 'sparam.s2p');
analyze(amp, 1e9:10e6:6e9);
figure
plot(amp, 'Gmag','Ga','Gt','dB')