how to solve differential equation in matlab

 Respuesta aceptada

Torsten
Torsten el 11 de Mzo. de 2015

0 votos

Do you know an antiderivative of beta(z),i.e. a function Beta(z) with the property that
d(Beta(z))/dz = beta(z) ?
Best wishes
Torsten.

2 comentarios

Arjun Kumar
Arjun Kumar el 11 de Mzo. de 2015
yes i have different values of beta(z).now i want to plot graph between beta(z) and y.how can i do
Torsten
Torsten el 12 de Mzo. de 2015
The solution of your differential equation is given by
y(z)=y0*exp(integral_{z0}^{z} beta(z') dz')
if your initial condition for y is y(z0)=y0.
So if you have values for beta, use trapz to integrate from z0 to a given value of z. An approximate value for y(z) is then given by the above formula.
Best wishes
Torsten.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Mathematics en Centro de ayuda y File Exchange.

Preguntada:

el 11 de Mzo. de 2015

Comentada:

el 12 de Mzo. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by