How to solve a differential equation using data from experiment?
이전 댓글 표시
Hello everyone,
Actually, I have a differential equation with the following format:
where
.
where On the other hand, I have some experimental data for dN/dT for different T . I would like to obtain N(T). Is it possible to do so with the above equation and the experimental data?
답변 (1개)
Star Strider
2019년 9월 17일
Since you are not integrating the differential equation, this is a simple nonilinear parameter estimation problem.
Try this:
T = 270:280; % Create ‘T’
dNdT = rand(size(T)); % Create ‘dNdt’
a = 42; % Create ‘a’
deltaE = 3; % Create ‘deltaE’
R = 8.3145;
objfcn = @(b,T) a.*exp(-deltaE./(R*T)) .* (1 - b); % Objective Function
B = fminsearch(@(b) norm(dNdT - objfcn(b,T)), 10); % Estimate Parameter
It might be possible to solve it as a linear problem, however that is not obvious to me just now.
Experiment to get the result you want.
댓글 수: 4
Faezeh Manesh
2019년 9월 17일
Star Strider
2019년 9월 17일
My pleasure.
Please provide the complete equation (or system of equations), including
. It is likely possible to estimmte its parameters if I have a version of it I can code. (It would have been very helpful to have had all that information at the outset.)
Faezeh Manesh
2019년 9월 17일
Faezeh Manesh
2019년 9월 17일
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
