Dimensional Incompatibility Error Simulink
Mostrar comentarios más antiguos
I have 2 step inputs. I need to multiply them with a 3x2 matrix B to implement B*u in Simulink. How can I do that? I am getting Dimensional incompatibility error.
Respuestas (1)
Sebastian Castro
el 8 de Mayo de 2015
Editada: Sebastian Castro
el 8 de Mayo de 2015
0 votos
- You can use a Mux or Vector Concatenate block on the 2 Step inputs to form a 2-element vector.
- Then, use a Gain block with a value of B and the Multiplication mode to Matrix (K*u).
K is 3x2 and u is 2x1, so that should work out and give you a 3x1 output.
- Sebastian
Categorías
Más información sobre Modeling en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!