Designing Model Predictive Control (MPC) in MATLAB