Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How to input six signals to a case statement without getting an error.

1 Ansicht (letzte 30 Tage)
THISATH ATTAMPOLA ARACHCHIGE DON
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
I want to input six signals to a case statement(The six signals are created using a if statement).The figure below shows the six input signals.I tried using mux, Bus creator and Vector Concatenate blocks but all of them gave dimentional errors. Is it possible to merge the six signals to one signal and how? Please let me know the best possible approach.
x1.JPG
x2.JPG

Antworten (1)

Jonas
Jonas am 4 Feb. 2020
I don't know exactly what you want to achieve, but I am feeling that the 'cases' block is not the best choice. You might want to look into the 'Multiport Switch' block or - if you have stateflow - the Truthtable.

Diese Frage ist geschlossen.

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by