How to solve a differential equation using data from experiment?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello everyone,
Actually, I have a differential equation with the following format:
where
.
![Capture.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238660/Capture.png)
![Capture1.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238661/Capture1.png)
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?
0 Kommentare
Antworten (1)
Star Strider
am 17 Sep. 2019
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 Kommentare
Siehe auch
Kategorien
Mehr zu Systems of Nonlinear Equations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!