Simulink hw problem, set different initial values and set equal to 0

Okay so this is Homework for my matlab class, and this is the last one I have left to do. I am confused on how to set different initial values for the different x values. ALSO I should say we are not allowed to use any user defined functions in simulink. We have to use all the function blocks. I am stuck on setting different initial values, so I havent been able to move foward much in this problem. Any help is appreciated! im still learning so sorry if this is stupid simple! I just dont know everything in Matlab/Simulink yet!

5 件のコメント

Fangjun Jiang
Fangjun Jiang 2021 年 4 月 1 日
Use two Integrator blocks to construct the equation. The Integrator block has a parameter called Initial value. That is the place to set your initial conditions.
Colby Jennings
Colby Jennings 2021 年 4 月 1 日
Awesome Ill try that. Thankyou!
Colby Jennings
Colby Jennings 2021 年 4 月 1 日
alright so i used the integration block for the given initial conditions, but any idea what I would put for the last x? the one with 2 dots. I dont see a variable block?
Fangjun Jiang
Fangjun Jiang 2021 年 4 月 2 日
You need to have two Integrators connected in series. The input is x_two_dot, the output of the first Integrator is x_one_dot, the output of the second Integrator is x.
Asvin Kumar
Asvin Kumar 2021 年 5 月 20 日
Adding to Fangjun's suggestions.. have a look at the doc page which has examples. https://www.mathworks.com/help/simulink/slref/integrator.html

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

回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021 年 5 月 22 日

0 投票

This one is a more unified simulation Simulink model of 2nd order ODE exercises with no external force applied case scenario.

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

製品

質問済み:

2021 年 4 月 1 日

回答済み:

2021 年 5 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by