How to know which input will switch block pass programmatically?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Xiangming Hao
am 13 Jul. 2017
Kommentiert: Xiangming Hao
am 18 Jul. 2017
Hi,
I'm analysing simulink modell. I have a problem to know which input (1st or 3rd) will switch block pass. With the criteria and second input value can man easily manually know which input will pass. But how can I know it by code?
Thanks
Xiangming
0 Kommentare
Akzeptierte Antwort
Don Zheng
am 17 Jul. 2017
Try reading the second input port value to decide whether the condition is met: https://www.mathworks.com/matlabcentral/answers/96280-is-it-possible-to-read-the-value-of-a-simulink-signal-passing-through-a-signal-line-from-the-matlab
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!