Function of a process with oneintegrator, one pole and two zeroes: k(1+sT1)(1+sT2)/(1+sT3)s
function f2p2z input Real alpha "Parametro di discretizzazione"; input Real T1 "Zero"; input Real T2 "Zero"; input Real T3 "Polo"; input Real u "Current input"; input Real u_pre1 "Previous input"; input Real u_pre2 "two steps ago input"; input Real y_pre1 "Previous output"; input Real y_pre2 "two steps ago output"; input Real Ts "Sampling time [s]"; input Real mu "Gain"; output Real y "Output"; end f2p2z;