how to change simulink matlab (bellow) to code matlab? How do I enter the initial value?

1 回表示 (過去 30 日間)
af af
af af 2021 年 7 月 13 日
編集済み: af af 2021 年 8 月 23 日
how to change simulink matlab (bellow) to code matlab?
How do I enter the initial value?
dShdt=lambdah+(k*Rh)-(1-u1)*betam*Sh-muh*Sh;
dEvdt=(1-u1)*landav*Sv-p*u3*Ev-(a2+muv)*Ev;

回答 (1 件)

J Chen
J Chen 2021 年 7 月 13 日
https://www.mathworks.com/help/matlab/ref/ode45.html
  1 件のコメント
af af
af af 2021 年 8 月 23 日
編集済み: af af 2021 年 8 月 23 日
hi
I removed the following article its robust controller and used a fractional-order PID instead.
But there is a problem in the simulation that one of the control signals (u_3) becomes negative (figure below).
Can you help solve this problem?
The simulation program in MATLAB is come attach.
(article name: Control of malaria outbreak using a nonlinear robust strategy with adaptive gains)
The simulation uses the FOMCON Toolbox for MATLAB.

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

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by