How does the matrix product block work?

I am doing ... just simple matrix multiplication in simulink and it does not work. Just by speculation alone, the 2 input signals that go into the product block have the dimension 2 and [2x2] respectively, so I expect the block should output some 2-vector, but it does not. Could somebody help me?

댓글 수: 1

Paul
Paul 2024년 1월 27일
Are you trying to form M*tau where tau is column vector? Or tau*M where tau is row vector?

댓글을 달려면 로그인하십시오.

답변 (2개)

Walter Roberson
Walter Roberson 2024년 1월 26일

0 개 추천

The input signal is dimension 2, not 1 x 2 or 2 x 1. You need to pass it through a reshape block https://www.mathworks.com/help/simulink/slref/reshape.html
Fangjun Jiang
Fangjun Jiang 2024년 5월 7일

0 개 추천

For the [1 2] Constant block, un-check "Interpret vector parameters as 1-D".
For your Inport block, specify its Port dimensions as [1 2]

카테고리

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

제품

릴리스

R2023b

질문:

2024년 1월 26일

답변:

2024년 5월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by