Simulink Switch Outputs wrong data format

조회 수: 1 (최근 30일)
Florian Rössing
Florian Rössing 2021년 9월 24일
댓글: Florian Rössing 2021년 9월 24일
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?

채택된 답변

Fangjun Jiang
Fangjun Jiang 2021년 9월 24일
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)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by