Matrix Multiplication in Simulink
Afficher commentaires plus anciens
I want to multiply a simple 3x3 matrix and 1x3 matrix using simulink model, how do i do that ?

Réponses (3)
Eric L
le 13 Fév 2020
5 votes
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 commentaires
TRONG LINH VU
le 27 Juil 2021
Thank you. This one is very useful
Pedro Pérez Sánchez
le 19 Juin 2022
Thank you I was going crazy
linda
le 23 Mar 2024
Thank you!!
Chien-Ping Wu
le 9 Mai 2017
2 votes

Shritesh Jibhkate
le 25 Avr 2018
2 votes
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.
Catégories
En savoir plus sur Simulink Functions dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!