How can I find the coeficients alpha, beta of the simple linear regression, using polyfit function?
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
How can I find the coeficients alpha, beta for the X coordinates of the simple linear regression, using polyfit function?
0 Commenti
Risposta accettata
Torsten
il 10 Dic 2022
x = (0:0.1:1).';
y = 3*x + 4 + 0.01*randn(numel(x),1);
polyfit(x,y,1)
0 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!