Why is the output of the Simulink 'Bitwise Operator' a matrix (CompiledPortDimension)
이전 댓글 표시
Why is the output of the Simulink 'Bitwise Operator' a matrix (CompiledPortDimension)?
Which other blocks behave the same way?
댓글 수: 2
Kaustubha Govind
2013년 6월 12일
What are the dimensions of the input(s) to the block in your model?
Ernst
2013년 6월 13일
답변 (1개)
Kaustubha Govind
2013년 6월 13일
0 개 추천
It looks like the 'Bit Mask' parameter on the block may be a non-scalar in your block, which is why the output is a matrix even when the input is scalar.
댓글 수: 2
Ernst
2013년 8월 8일
Kaustubha Govind
2013년 8월 8일
Ah! I think you may not be interpreting the CompiledPortDimension correctly - from my understanding, the first digit represent the number of dimensions, and the following digits represent the length of each dimension. So essentially, your output is a signal with dimensions 1x1 (ie. 2D signal). Does that make sense? For example, if the output were a mxnxp signal, CompiledPortDimension would be [3 m n p].
카테고리
도움말 센터 및 File Exchange에서 Signal Attributes and Indexing에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!