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

Respuestas (1)

Andrei Bobrov
Andrei Bobrov el 22 de Mayo de 2013
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 comentario

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

Iniciar sesión para comentar.

Categorías

Más información sobre Dynamic System Models en Centro de ayuda y File Exchange.

Preguntada:

el 22 de Mayo de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by