필터 지우기
필터 지우기

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 CenterFile Exchange에서 RF 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