Effacer les filtres
Effacer les filtres

How to use numerical solution in differential equation?

1 vue (au cours des 30 derniers jours)
I G
I G le 4 Mai 2018
Modifié(e) : Torsten le 4 Mai 2018
I have numerical solution for variable p, which I got through ode45 method. I need to calculate u, where
u=((r^2-1)/16)*dp/dz
May I use my numerical solution for p and calculate dp/dz in second equation? Is it possible in matlab and on which way?

Réponses (1)

Torsten
Torsten le 4 Mai 2018
Modifié(e) : Torsten le 4 Mai 2018
Use MATLAB's "diff" on the array of p-values to approximate dp/dz:
https://de.mathworks.com/help/matlab/ref/diff.html
Best wishes
Torsten.

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by