# How to develop equation from the database ?

3 Ansichten (letzte 30 Tage)
Lyhour Chhay am 3 Jan. 2023
Kommentiert: Alex Sha am 4 Jan. 2023
Excuse me every one. I have the scattering data (case selection data) as show in the figure below. I want to develop the equation to predict 'y' value by input the 'x' and 'TH'. The equation shows the typical form like: y = f(x,TH). How to do it ? Thank you very much. ##### 0 Kommentare-1 ältere Kommentare anzeigen-1 ältere Kommentare ausblenden

Melden Sie sich an, um zu kommentieren.

### Antworten (1)

Saurabh Chaudhary am 3 Jan. 2023
Bearbeitet: Saurabh Chaudhary am 3 Jan. 2023
You can fit a curve using curve fitting toolbox (enter "cftool" in command window to open it) and obtain the equations and write a small script to select the equation accoding to TH value.
##### 9 Kommentare8 ältere Kommentare anzeigen8 ältere Kommentare ausblenden
Alex Sha am 4 Jan. 2023
Hi, there are some other softwares which can search functions with the better fitting to the data provided, automatically.
You can also use Neural Network to fit your data, the function is much long, but with more better result:
where x1=TH, x2=x;  Sum Squared Error (SSE): 6.15367933063669E-6
Root of Mean Square Error (RMSE): 0.000413443511210577
Correlation Coef. (R): 0.999998431427883
R-Square: 0.999996862858226
Parameter Best Estimate
--------- -------------
p1 -0.0184998266667526
p2 -0.00170324878988054
p3 0.00105902753507986
p4 -8.63188539136108E-5
p5 13.3141311137491
p6 -0.010077245280387
p7 -769.681178210069
p8 113.441478800875
p9 -41.899708039828
p10 -46.1202975365195
p11 325.53145620631
p12 1467.54651172898
p13 -22.9188474020333
p14 0.975904984363179
p15 -4.72158876536306
p16 -660.31030174081
p17 -6.67856367002313
p18 51.8661729374925
p19 44.4703308742898
p20 22.8349571901207 Melden Sie sich an, um zu kommentieren.

### Kategorien

Mehr zu Linear Predictive Coding 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!