MATLAB Answers

Matrix Multiplication in Simulink

415 views (last 30 days)
pravin behera
pravin behera on 19 Mar 2015
Answered: Eric L on 13 Feb 2020
I want to multiply a simple 3x3 matrix and 1x3 matrix using simulink model, how do i do that ?

  0 Comments

Sign in to comment.

Answers (3)


Shritesh Jibhkate
Shritesh Jibhkate on 25 Apr 2018
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.

  0 Comments

Sign in to comment.


Eric L
Eric L on 13 Feb 2020
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].

  0 Comments

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by