how to drive this equations in simulink ? can anyone help me?

1 回表示 (過去 30 日間)
Azaz Ali
Azaz Ali 2019 年 8 月 17 日
コメント済み: Azaz Ali 2019 年 8 月 20 日
Captured1.PNG
  3 件のコメント
Walter Roberson
Walter Roberson 2019 年 8 月 19 日
Perhaps you could use the "Insert Latex" control to type in representations of your equations.
Azaz Ali
Azaz Ali 2019 年 8 月 19 日
編集済み: Walter Roberson 2019 年 8 月 19 日
@sulaymon dear let see now. i'm wanting that how this equation will be built in simulink using "simulink library", i'm the beginner in simulink, so i don't know how to built it in simulink. i need help please. i'm very thankful of you.

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

採用された回答

Sourav Bairagya
Sourav Bairagya 2019 年 8 月 20 日
編集済み: Sourav Bairagya 2019 年 8 月 20 日
To model differential equations in Simulink, you should follow these steps:
  • First, make a list of all the constant valued variables used in the equations you are trying to model. Then, load these variables with their values in the workspace before starting to prepare the model.
  • For example, lets an ODE be:
  • To model this ODE, a block should be needed which can integrate x_dot(t) to x(t) . The “Integrator” block from the “Math Operations” library of Simulink can do that. Blocks that contain continuous states, such as “Integrator block”, can accurately model the dynamics described by ODEs because the Simulink solvers can control the integration error of a continuous state. One important point here to note that you should not use the “Derivative block” to model ODEs. “Derivative block” only approximates the rate of change of its input signals but doesn’t contain any continuous state. Hence, this block has no ability on controlling simulation accuracy. Thus, find how many “Integrator blocks” will be required in your case first and avoid using “Derivative block”.
  • Start with the Integrator blocks and label their inputs and outputs properly:
  • You can model the constant valued variables using “Constant” block from “Math Operations” library.
  • To perform addition use “Add” block, for multiplication use “Product” block and for division use “Divide” block from “Math Operations” library.
  • To multiply any signal with a constant factor, use “Gain” block from “Math Operations” library.
  • Now, construct the equation’s RHS and then connect the returned signal from the equation’s RHS as a source to its left side.
  • In this example, the equation can be simplified as follows: im6.PNG
  • The Simulink model will now look like this:
  • im2.PNG
  • Now, as per above example, you can rewrite your ODEs and follow this step for one ODE at a time to model your system of equations.
  • Finally put the initials conditions in the Integrator Block if any.
  1 件のコメント
Azaz Ali
Azaz Ali 2019 年 8 月 20 日
Ok thanks a lot sir for giving response.

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

その他の回答 (0 件)

カテゴリ

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

タグ

タグが未入力です。

製品

Community Treasure Hunt

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

Start Hunting!

Translated by