Dimensional Incompatibility Error Simulink

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.

답변 (1개)

Sebastian Castro
Sebastian Castro 2015년 5월 8일
편집: Sebastian Castro 2015년 5월 8일

0 개 추천

  1. You can use a Mux or Vector Concatenate block on the 2 Step inputs to form a 2-element vector.
  2. 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

카테고리

도움말 센터File Exchange에서 Modeling에 대해 자세히 알아보기

제품

질문:

2015년 5월 7일

편집:

2015년 5월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by