Simulink Switch Outputs wrong data format
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Florian Rössing
le 24 Sep 2021
Commenté : Florian Rössing
le 24 Sep 2021
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?
0 commentaires
Réponse acceptée
Fangjun Jiang
le 24 Sep 2021
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)
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Sources dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!