request for rectifying error in simulink

2 ビュー (過去 30 日間)
NANDANA
NANDANA 2025 年 5 月 28 日
回答済み: Ronit 2025 年 6 月 10 日
I have developed a simulink file in matlab 2022a but when i connect a dc source it is showing error as incorrect matrix dimension. I am not using any matlab functions i th simulation only switches and dc source.
  1 件のコメント
Adarsh
Adarsh 2025 年 6 月 3 日
Hi @NANDANA, can you please share the simulink model for better understanding of the issue?

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

回答 (1 件)

Ronit
Ronit 2025 年 6 月 10 日
Hello,
This type of error typically arises from a mismatch in signal or port dimensions rather than a problem with the DC source itself. Carefully checking the block inputs and using signal dimension displays can help quickly identify and resolve the issue.
  • Ensure that all blocks connected to each other are working with signals of the same size.
  • Check that all data inputs to the Switch block have the same dimensions.
I hope this helps resolves your query!

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by