フィルターのクリア

Hi, I need help with this error, please.

4 ビュー (過去 30 日間)
Danikha Shyken
Danikha Shyken 2023 年 9 月 22 日
コメント済み: Danikha Shyken 2023 年 9 月 29 日
  2 件のコメント
Danikha Shyken
Danikha Shyken 2023 年 9 月 22 日
this is the Simulink model
Pooja Kumari
Pooja Kumari 2023 年 9 月 28 日
Can you share the complete simulink model?

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

採用された回答

Pooja Kumari
Pooja Kumari 2023 年 9 月 29 日
Hello Danikha,
It is my understanding that you are facing “Error in port width or dimension” error in Simulink model in which the ‘Output_Port_1’ is one dimensional vector with one element.
It is difficult to see from the pictures, but it looks like you have predefined the sizes of your signals. The error specifically states that ‘Output_Port_1’ is a one-dimensional vector with only one element. This means that the port is expecting a vector with more than one element, but it is receiving only a single element. The dimensions of the signals going into ‘input_selector2/Input_Selector/voltage_input’ is not matching with what Simulink is expecting from the output.
For easier debugging, doing the following things will allow you to trace the error more easily. Under the Debug tab, open the Information Overlays menu and select Signal dimensions. Then update the model. That will show the dimensions everywhere and will show inconsistent dimensions in ‘Output_Port_1’.
A similar workaround is given in the following MATLAB answer for your reference:
Kind regards,
Pooja Kumari
  1 件のコメント
Danikha Shyken
Danikha Shyken 2023 年 9 月 29 日
Thank you so much for your response. It's much appreciated.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRF Blockset Models for Transceivers についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by