フィルターのクリア

Error in port widths or dimensions

1 回表示 (過去 30 日間)
Mounira
Mounira 2023 年 12 月 28 日
回答済み: Paul 2023 年 12 月 30 日
Hello,
so i have a state space representation in simulink matlab, and i have this error:
Error in port widths or dimensions. Invalid dimension has been specified for 'Input Port 3' of 'dcmicrogrid14/plant model/Sum'.
Component:Model Predictive Controller | Category:Find Operating Point error
Error in port widths or dimensions. 'Output Port 1' of 'dcmicrogrid14/plant model/Gain' is a [2x2] matrix.
Component:Model Predictive Controller | Category:Find Operating Point error
3 inputs, 2 outputs=2 states,
and the gain are element.wise
in this case why A shouldn't be 2 by 2?
what is the error?
thanks in advance
  2 件のコメント
Sulaymon Eshkabilov
Sulaymon Eshkabilov 2023 年 12 月 28 日
It is a bit difficult to see your model (subsystem), it will be helpful to see the whole model.
Mounira
Mounira 2023 年 12 月 29 日
so i added a photo and the model in case you want to check

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

採用された回答

Paul
Paul 2023 年 12 月 30 日
The system has 3 inputs, 2 outputs, and 2 states. The gain multiplications by A, B, C, and D need to be matrix*vector multiplications.
If that doesn't work, go to Debug->Information Overlays -> Signal Dimensions and post a screen capture after the diagram updates.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreate Large-Scale Model Components についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by