Matrix Multiplication in Simulink
Mostrar comentarios más antiguos
I want to multiply a simple 3x3 matrix and 1x3 matrix using simulink model, how do i do that ?

Respuestas (3)
Eric L
el 13 de Feb. de 2020
5 votos
In case anyone else has the same problem, make sure "Interpret vector parameters as 1-D" is unchecked in the constant block if you want to do matrix multiplication.
In pravin's model, Simulink is probably reading Constant2 as size [3] instead of [1x3].
3 comentarios
TRONG LINH VU
el 27 de Jul. de 2021
Thank you. This one is very useful
Pedro Pérez Sánchez
el 19 de Jun. de 2022
Thank you I was going crazy
linda
el 23 de Mzo. de 2024
Thank you!!
Chien-Ping Wu
el 9 de Mayo de 2017
2 votos

Shritesh Jibhkate
el 25 de Abr. de 2018
2 votos
Interchange those two constant blocks. The error is occurring due to mismatch in dimension. Here you are trying to multiply matrix of size 3*3 by 1*3. But, correct multiplication will be 1*3 by 3*3.
Categorías
Más información sobre Simulink Functions en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!