Dimensions being inconsistent even though nothing has changed the output
이전 댓글 표시

I have a model and I am trying to check what's wrong with the dimensions (since dimensions are not consistent).
I found this to be one of the (out of many) causes. The input into the gain is fine. The output is also fine. So why is the height a question mark?
답변 (2개)
Fangjun Jiang
2021년 3월 19일
0 개 추천
Double click the Outport block "Height" to check its properties. The question mark is referencing an issue there.
댓글 수: 4
Amritz Ansara
2021년 3월 19일
Amritz Ansara
2021년 3월 19일
Fangjun Jiang
2021년 3월 19일
go layer up and check the dimension of the downstream connection. It is good you turned on the dimension display. You should be able to find the place where the two inconsistent dimensions meet.
Amritz Ansara
2021년 3월 22일
Jonas
2021년 3월 19일
0 개 추천
The [1x1] seems to suggest it is interpreted as a matrix (although with height and width of 1), and not as a scalar with dimension 1. May I suggest to try to add the 'Reshape' block before your Output block? This could reshape the matrix to a scalar again.
I wanted to test this for myself but couldn't manage to show the signal dimensions for some reason.
댓글 수: 1
Amritz Ansara
2021년 3월 19일
편집: Amritz Ansara
2021년 3월 19일
카테고리
도움말 센터 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



