Simulink Switch Outputs wrong data format

Hi everyone.
I am currently experiencing problems with the switch block.
I havebuild a basic edge detector:
My Problem now is, that the output of out.TDCValid is a Nx1 Array, but out.TDCValid1 outputs 1x1xN instead the expected Nx1. I cannot figure out why this is. Any Ideas from your side?

 Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 24 de Sept. de 2021

1 voto

check the size/dimension of the Constant zero block, the "TriggerOUT" Outport block and the Switch block itself. Specify it as [1], not [1 1].
If nothing else, run squeeze(out.TDCValid1)

Más respuestas (0)

Categorías

Más información sobre Simulink Functions en Centro de ayuda y File Exchange.

Productos

Versión

R2020b

Etiquetas

Preguntada:

el 24 de Sept. de 2021

Comentada:

el 24 de Sept. de 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by