how to solve an ode with time dependent parameter using matlab ??????
Afficher commentaires plus anciens
i have got a set of coupled differential equations given below and would really appreciate any help that would provide solving them ....:)
dx/dt=g*y(t)*I(t)-a*x(t)
dy/dt=beta*w(t)-g*y(t)*I(t)
dw/dt=a*x(t)-beta*w(t)
where a,beta,g are constants and I(t) is like a current supplied at a time t .. x,y and z are time dependent values that need to be calculated ...
Réponses (1)
Sudarson Sinha
le 18 Mai 2021
Create a function for I(t) and call the function inside differential equation defined function.
function data=I(t,alpha,beta)
.....
end
function val = dydt(t,y,alpha, beta, gamma)
val(1) = .....+ I(t, alpha, beta)
val(2) = -gamma*......
....
end
something like this.
Catégories
En savoir plus sur Linear Algebra dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!