How to use numerical solution in differential equation?

1 view (last 30 days)
I have numerical solution for variable p, which I got through ode45 method. I need to calculate u, where
May I use my numerical solution for p and calculate dp/dz in second equation? Is it possible in matlab and on which way?

Answers (1)

Torsten on 4 May 2018
Edited: Torsten on 4 May 2018
Use MATLAB's "diff" on the array of p-values to approximate dp/dz:
Best wishes


Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by