MATLAB: How to write PID function in .m file

Control System Toolboxhellopid

i need a pid function in my m file. could anyone please write the function.

Best Answer

This demo might help.
Arkadiy