MATLAB: Error while designing MPC controller where output of vehicle body block is using as measured output in MPC

Model Predictive Control Toolboxmpc controller with vehicle 3dofVehicle Dynamics Blockset

I keep getting error while designing MPC where i am using output of vehicle body block output as measured output in MPC. Could anyone tell me what am doing wrong. The error statements is "Error in port widths or dimensions. The signal connected to the "mo" port of the "project/MPC Controller" block must be a row or column vector signal with 2 elements."

Best Answer

Seems the error is self-explanatory - have you checked the dimensions of the signal you are connecting to the 'mo' port of the MPC block?