Matrix Multiplication in Simulink

92 ビュー (過去 30 日間)
pravin behera
pravin behera 2015 年 3 月 19 日
コメント済み: linda 2024 年 3 月 23 日
I want to multiply a simple 3x3 matrix and 1x3 matrix using simulink model, how do i do that ?

回答 (3 件)

Eric L
Eric L 2020 年 2 月 13 日
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 件のコメント
Pedro Pérez Sánchez
Pedro Pérez Sánchez 2022 年 6 月 19 日
Thank you I was going crazy
linda
linda 2024 年 3 月 23 日
Thank you!!

サインインしてコメントする。


Chien-Ping Wu
Chien-Ping Wu 2017 年 5 月 9 日

Shritesh Jibhkate
Shritesh Jibhkate 2018 年 4 月 25 日
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.

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by