Add Parameter To Simulink Model, In the Simulink model put a MATLAB Function block.