solution for differntial equation?

i want to solve these system of equation numerically in mathlab
dp/dl=-.0000358*(t/p)
dt/dl=.00000467*(dp/dl)-.00454*t+.1816
@l=0 t=55 &p=93
Thanks for help

답변 (1개)

Andrei Bobrov
Andrei Bobrov 2013년 5월 22일

0 개 추천

Let your function: funs
function y = funs(t,x)
y = zeros(2,1);
y(1) = -.0000358*(x(2)./x(1));
y(2) = .00000467*y(1)-.00454*t+.1816;
solution
[T Y] = ode45(@funs,[0 500],[93 55]);

댓글 수: 1

midors84
midors84 2013년 5월 22일
it gives this error ??? Input argument "x" is undefined.
Error in ==> funs at 3 y(1) = -.0000358*(x(2)./x(1));

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Dynamic System Models에 대해 자세히 알아보기

질문:

2013년 5월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by