필터 지우기
필터 지우기

SIR Simulink Model Function Block

조회 수: 1 (최근 30일)
Tahmid Abdullah
Tahmid Abdullah 2020년 8월 18일
편집: Jim Riggs 2020년 8월 18일
I am modelling a simple SIR model. I have modelled the SIR model in Simulink as shown below:
I want to change the beta constant to a variable input but I dont know how to change the input parameter beta to a time-dependent parameter in Simulink?
I know of the function block in Simulink but how do I input 'time' which is days here. We are simulating for 300 days but how do i input the simulation time at the top which is 300 to become an input for the time-dependent beta
Thanks in advance

답변 (1개)

Jim Riggs
Jim Riggs 2020년 8월 18일
편집: Jim Riggs 2020년 8월 18일
In the Simulink library browser, on the "sources" pallet, you will find a "clock" function. Use this to create a time signal.
(Note that the output of the clock function is in seconds, so you will need to scale it to get days)

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by