- Under the Debug tab, open the Information Overlays menu and select Signal dimensions. Then update the model. That will show the dimensions everywhere, and will show inconsistent dimensions as ?.
- Show the names of all blocks so we can know which Gain and Sum blocks the error messages refer to. Select any block, then go to the Format tab, click "Auto Name", and uncheck the "Hide Automatic Block Names" box.
- You didn't include the equation for , only for , so I can't verify C and D.
- Within the equation, A is incorrect. To keep [SOC(t);LOH(t)] unchanged, multiply by [1 0;0 1] (aka eye(2))... or leave that gain block out entirely. [1 1;1 1] is a singular matrix which does not reflect the equation shown.
- If you're doing matrix multiplications in the Gain blocks, you'll need to set the Multiplication mode to "Matrix (K*u)", and ensure that the inputs are column vectors. (Showing signal dimensions will help with this.)