Hi, I am postgraduate structural engineer from IIT Madras currently researching in the field of earthquake engineering towards a doctorate degree at the University of Melbourne. I have used MATLAB, Simulink, and other toolboxes extensively through out my academic life and I am very well versed with it.
I think it is not very difficult to simulate a gain function in the matlab script as simulink already dose that for you.