Function lead lag process: k(1+sT1)/(1+sT2)
function f1p1z input Real alfa "Parametro di discretizzazione"; input Real T1 "Zero"; input Real T2 "Polo"; input Real u "Current input"; input Real u_pre "Previous input"; input Real y_pre "Previous output"; input Real Ts "Sampling time [s]"; input Real k "Gain"; output Real y "Output"; end f1p1z;