Data fitting with correlation coefficient

10 Ansichten (letzte 30 Tage)
Eman Nabil
Eman Nabil am 19 Sep. 2015
Beantwortet: Amr Hashem am 29 Okt. 2015
I have 1 dimensional array of data (nonlinear regression) that I need to figure out the best curve fitting (normal, weibull, Exponential, ....) for, according to the higher correlation coefficient (R). what is the Matlab function to use "without third party code, like mike's allfitdist or fitmethis codes"? thanks in advance
  2 Kommentare
Eman Nabil
Eman Nabil am 9 Okt. 2015
I've changed the question form according to your attached link do you have an answer to the question itself? thanks

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Amr Hashem
Amr Hashem am 29 Okt. 2015
If you want to find " The best curve fitting", you can use
cftool
which is a graphical user interface.
or you can use the functions of each, for example:
expfcn = @(b,x) b(1).*exp(b(2).*x); %exponential with 2 parameters
B0=[50;0] % intial parameters
B=nlinfit(values,ydata,expfcn,B0);
Exp=expfcn(B0,xvalues);
plot(xvalues,Exp)
but if you want to find " The best distribution fitting", you can use
exppdf % exponential
fitdist(data,'normal'); % normal
wblpdf % weibull

Kategorien

Mehr zu Linear and Nonlinear Regression 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!

Translated by