Thanks both! A combination of that did help (and I had to explicitly specify which dimensions I wanted using the signal specification box).
Dimensions being inconsistent even though nothing has changed the output
5 次查看(过去 30 天)
显示 更早的评论
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
Double click the Outport block "Height" to check its properties. The question mark is referencing an issue there.
4 个评论
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.
Jonas
2021-3-19
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Model Verification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!