필터 지우기
필터 지우기

How to use numerical solution in differential equation?

조회 수: 1 (최근 30일)
I G
I G 2018년 5월 4일
편집: Torsten 2018년 5월 4일
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?

답변 (1개)

Torsten
Torsten 2018년 5월 4일
편집: Torsten 2018년 5월 4일
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.

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by