How does the matrix product block work?
2 次查看(过去 30 天)
显示 更早的评论
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
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
2024-1-26
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
0 个评论
Fangjun Jiang
2024-5-7
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]
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sources 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!