Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How to input six signals to a case statement without getting an error.
조회 수: 1 (최근 30일)
이전 댓글 표시
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/269638/x1.jpeg)
![x2.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/269639/x2.jpeg)
댓글 수: 0
답변 (1개)
Jonas
2020년 2월 4일
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.
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!