Based on the state space MPC code in File Exchange, http://www.mathworks.com/matlabcentral/fileexchange/19650 a Simulink block to use the state space MPC code is developed. Two examples to work with continous-time state space plant model and discrete-time state space plant model are included.