Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Differential Equation problem. ~Please help

1 回表示 (過去 30 日間)
Ben
Ben 2013 年 3 月 20 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi. I have the following code:
function dydx = vdp1(x,y)
dydx = [y(2);-y(1)];
And in another script I have the following code:
sol = ode45(@vdp1,[0 pi],[0;1]);
xint = pi;
Sxint = deval(sol,xint)
However I want to introduce a variable w so that the differential equation becomes:
dydx = [y(2);-(w^2)*y(1)];
and my result is in terms of w. I have been trying this for hours but to no avail. Any help would be great. Thanks
  1 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 3 月 20 日
is w variable or constant, if variable, how w is varying?

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by