Designing Adaptive Self-Regulation Controller in MATLAB