Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Differential Equation problem. ~Please help
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!