Surface Fitting for a pair of coupled differential equations
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I a pair of coupled differential equations which solve for two variables, fe and fi. I have from a separate source, two surface plots - or quantities R_data and S_data, which I plot against fe and fi (from data).
In the differential equation for fe, there is a quantity R and in the differential equation for fi, there is a quantity S. I would like to fit the surfaces for the quantities R and S (vs. fe and fi from the differential equation) to the surfaces that I already have (R_data and S_data).
I have tried to use fminsearch for the same. However, fminsearch minimizes the error only for one surface/curve, and I have two surfaces to fit from the same set of differential equations. How would I go about solving this problem?
3 Kommentare
Torsten
am 11 Mai 2017
If fe is a function of R alone and fi is a function of S alone, you could fit the two surfaces individually.
But you write that the differential equations for fe and fi are coupled, thus fe and fi will be functions of both R and S, I guess.
If this is the case, you will have to fit the two surfaces simultaneously by minimizing the above "combined" sum of squares
sum_i [(R_data(i)-fe(R,S,i))^2 +(S_data(i)-fi(R,S,i))^2]
Best wishes
Torsten.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Interpolation 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!