mpc-code Various MATLAB scripts for implementing linear model predictive control (MPC). The functions to calculate the prediction matrices are tested by comparing to the script calcef.m by Plamondon, Kettani and Desbiens (source).