How can I resolve the "incorrect size of expression 'xpoff': expected [:?x1] but found [1x0]." error for designing MPC using the MPC toolbox in Simulink?

25 views (last 30 days)
Sukjoon Oh
Sukjoon Oh on 9 Jul 2019
Commented: Tomasz Chrzescijanek on 26 Dec 2021 at 18:10
When I connect Tdot to mo and connect mv to T, I can get MPC results.
However, when I connect P to mo and connect mv to Tset or connect m to mo and connect mv to m, I get the "incorrect size of expression 'xpoff': expected [:?x1] but found [1x0]." error
Any ideas?
MPC example.jpg

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!