How can I find the coeficients alpha, beta of the simple linear regression, using polyfit function?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
How can I find the coeficients alpha, beta for the X coordinates of the simple linear regression, using polyfit function?
0 Kommentare
Akzeptierte Antwort
Torsten
am 10 Dez. 2022
x = (0:0.1:1).';
y = 3*x + 4 + 0.01*randn(numel(x),1);
polyfit(x,y,1)
0 Kommentare
Weitere Antworten (0)
Siehe auch
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!