Error to run rhsode file

Hi,
Currently, I have to build codes on 3 dof systems of forced vibrations and i got stuck to run the file. Can you please check the code for me whether i did that correctly or not?

2 件のコメント

Walter Roberson
Walter Roberson 2017 年 11 月 17 日
We advise that you do not use global. See instead http://www.mathworks.com/help/matlab/math/parameterizing-functions.html
This will involve converting your
[t,Y]=ode45('rhsode',trange,Y0);
to something more like
[t,Y]=ode45(@(t,y) rhsode(t,y, m1, m2, m3, k1, k2, l, g, F0, OM_freq), trange, Y0);
Hasmizi Abu Bakar
Hasmizi Abu Bakar 2017 年 11 月 20 日
Hi sir,
Is that mean that there will be no separate file for rhsode?
Thank you for your reply.

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

回答 (0 件)

質問済み:

2017 年 11 月 17 日

コメント済み:

2017 年 11 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by