Why is the output of the Simulink 'Bitwise Operator' a matrix (CompiledPortDimension)
Mostrar comentarios más antiguos
Why is the output of the Simulink 'Bitwise Operator' a matrix (CompiledPortDimension)?
Which other blocks behave the same way?
2 comentarios
Kaustubha Govind
el 12 de Jun. de 2013
What are the dimensions of the input(s) to the block in your model?
Ernst
el 13 de Jun. de 2013
Respuestas (1)
Kaustubha Govind
el 13 de Jun. de 2013
0 votos
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 comentarios
Ernst
el 8 de Ag. de 2013
Kaustubha Govind
el 8 de Ag. de 2013
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].
Categorías
Más información sobre Signal Attributes and Indexing en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!