How does the matrix product block work?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1601361/image.png)
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 comentario
Paul
el 27 de En. de 2024
Are you trying to form M*tau where tau is column vector? Or tau*M where tau is row vector?
Respuestas (2)
Walter Roberson
el 26 de En. de 2024
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 comentarios
Fangjun Jiang
el 7 de Mayo de 2024
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]
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1688726/image.png)
0 comentarios
Ver también
Categorías
Más información sobre Sources en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!