simply, I can put a PI block in simulink and specify gain and sampling time ..
BUT this time I need to remove this block from simulink and put a function block, where inside, I can set Kp .. Ki.. Kd .. sampling .. FOR DISCRETE SYSTEM
so, is there a function in matlab which can do so OR I should write the PI equations "manually" inside that function block???
THANKS