How to clear a Error in port widths or dimensions.

3 ビュー (過去 30 日間)
Baari Akshay kumar
Baari Akshay kumar 2022 年 7 月 8 日
編集済み: Baari Akshay kumar 2022 年 7 月 11 日
Hi, iam doing a Antilock braking system project in simulink model based and i got a error from subsystem of S-Function block which is
Error in port widths or dimensions. Output port 1 of 'akshay_wheelestfl/Subsystem1/Subsystem' is a one dimensional vector with 40 elements.
Error in port widths or dimensions. Input port 1 of 'akshay_wheelestfl/Subsystem1/Data Store Write' is a one dimensional vector with 1 elements.
I tried a lot of modifications and i can't get any results. Can anyone please give the solution for this.
  2 件のコメント
Muthukumar Ganesan
Muthukumar Ganesan 2022 年 7 月 10 日
Hi,
Based on the information provided, I believe the dimension property defined for the corresponding "Data Store Memory" block is -1. Since the output of the subsystem is of dimension [1 40], the same needs to be updated in its respective Data store memory block. Hope this helps.
Thanks.
Baari Akshay kumar
Baari Akshay kumar 2022 年 7 月 11 日
編集済み: Baari Akshay kumar 2022 年 7 月 11 日
Thank you so much @Muthukumar Ganesan The problem is cleared and i got the result.
Thanks.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeBlock and Blockset Authoring についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by