https://jp.mathworks.com/help/rf/ref/gammain.html
gammain - Calculate input reflection coefficient of two-port network - MATLAB
This MATLAB function calculates the input reflection coefficient of a two-port network.
two portcalculateinputreflectioncoefficient