how to fix Error in port widths or dimensions?

1 回表示 (過去 30 日間)
Ozan Emre Eren
Ozan Emre Eren 2021 年 5 月 14 日
回答済み: Shiva Kalyan Diwakaruni 2021 年 5 月 24 日
Hello!
There is a 3x2 matrix in Jac_v input from another subsystem and this is true, but the size of this matrix changes in Matrix Multiply entry [3]. The same problem exists in Matrix Multiply at 4. input. How does it look like this?

回答 (1 件)

Shiva Kalyan Diwakaruni
Shiva Kalyan Diwakaruni 2021 年 5 月 24 日
Hi,
This behavior is due to a different mechanism for "guessing" and propagating signal dimensions in Simulink . This issue can be bypassed by using a Signal Specification block in order to explicitly determine the dimensions of a signal, instead of relying on inheritance.
You can refer to the below link for more information
Hope it helps

カテゴリ

Help Center および File ExchangeSignal Attributes and Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by