How to select port in Multi Switch ?
2 次查看(过去 30 天)
显示 更早的评论
Hi there,
I have two questions concerning the Multiport Switch in Simulink :
- How can I select change the conducting port (the one I would like to connect) ? I have 12 ports in the switch corresponding to each month of the year. I would like to simulate them one by one.

- Also, how can I fix this issue when I run the simulation ?

Thank you in advance for your help,
Simon
0 个评论
回答(3 个)
Fangjun Jiang
2020-4-28
Double click the multi-port switch block, click Help. Read the document and understand it. Go through the examples.
0 个评论
Jonas
2020-4-28
编辑:Jonas
2020-4-28
Since you are using look-up tables with the monthly data anyway, I assume that the data for for example August will be zero in the range 0 - 7 and 9 - 12. So I think you can just replace the Multiport switch with an Add block which adds all 12 signals together.
If you still need to use the Multiport Switch, follow Fangjun Jiang's answer.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 General Applications 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!