Filter löschen
Filter löschen

Matrix Multiplication in Simulink

72 Ansichten (letzte 30 Tage)
pravin behera
pravin behera am 19 Mär. 2015
Kommentiert: linda am 23 Mär. 2024
I want to multiply a simple 3x3 matrix and 1x3 matrix using simulink model, how do i do that ?

Antworten (3)

Eric L
Eric L am 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].
  3 Kommentare
Pedro Pérez Sánchez
Pedro Pérez Sánchez am 19 Jun. 2022
Thank you I was going crazy
linda
linda am 23 Mär. 2024
Thank you!!

Melden Sie sich an, um zu kommentieren.


Chien-Ping Wu
Chien-Ping Wu am 9 Mai 2017

Shritesh Jibhkate
Shritesh Jibhkate am 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.

Kategorien

Mehr zu General Applications finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by