how to make a function call with 2 variables of second degree

3 ビュー (過去 30 日間)
Jens Petit-jean
Jens Petit-jean 2021 年 5 月 16 日
コメント済み: Jens Petit-jean 2021 年 5 月 16 日
Hi, how can I make a call function from thes equations. I know how to do it when there is only one variable with second degree but not with 2 variables of second degree.
thanks in advance

採用された回答

Jan
Jan 2021 年 5 月 16 日
編集済み: Jan 2021 年 5 月 16 日
Converting a set of ODE functions of a higher degree works exactly the same for 1 or more variables. The procedure remains really simple.
function dy = YourODE(t, y);
y1 = y(1);
dy1 = y(2);
y2 = y(3);
dy = [dy1; ...
a * y2 - cos(dy1); ...
b * dy1 + cos(t)];
See also:

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeHolidays / Seasons についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by