How can I create different fractions to guide the actions of a switch block? I want to route 25%, 45%,30% to servers A, B and C respectively.

2 ビュー (過去 30 日間)
nemo38
nemo38 2014 年 10 月 29 日
コメント済み: nemo38 2014 年 11 月 2 日
I am trying to use simulink to create the simulation of a clinic and patient movement through the clinic. A fraction of the patients move to different departments of the clinics, based on their characteristics or attributes. I would like to route the different representative factions but I am not sure how to do this. I have been struggling with the switch block but I don't know how to code in the right fractions to control the switch. Are there any examples out there that might help?

回答 (1 件)

Sandip Kumar
Sandip Kumar 2014 年 10 月 30 日
Based on the information you gave it certainly seems like a event based simulation, and MathWorks offer another Simulink based library to do so:
You can assign attributes to entities, and the route them accordingly. Please refer to different examples here:
There are good tutorials, which will ramp you on to this product:
Thanks, Sandip
  1 件のコメント
nemo38
nemo38 2014 年 11 月 2 日
Hi Sandip, Thanks a lot. I would go through the links and tutorials, they might suggest a better way to do it. For now I used a pulse generator and switch to set the proportions.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDiscrete-Event Simulation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by