Dimensions of matrices being concatenated are not consistent
1 view (last 30 days)
Show older comments
Hello,
I am trying to add in a State-Space Block into simulink with the following matrices:
However I recieve the following error whenever i try to apply this:
Where am i going wrong.
2 Comments
Geoff Hayes
on 9 Mar 2019
Matthew - which matrices are being multiplied together? A is 3x3 and B is 3x1; C is 4x3 and D is 4x1. Do your initial input need to be a 3x1 array? (I'm just guessing here...is this the x in the equations?)
Answers (1)
Geoff Hayes
on 9 Mar 2019
Matt - from your above description, C is an rxn matrix and D is an rxm matrix where r is the number of outputs. Doesn't this mean that your Initial Outputs must be a 4x1 array?
2 Comments
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!