How to plot point clouds and linear regression line in the same plot?
Mostrar comentarios más antiguos
I have a linear regression with:
X=[-2,-1,0,1,2]';
Y=[0,0,1,1,3]';
p=polyfit(X,Y,1) %p=[0.7,1.00]
c=polyval(p,[2.5,3]) %c=[2.75,3.10]
Respuestas (1)
Star Strider
el 26 de Nov. de 2020
0 votos
Categorías
Más información sobre Linear Regression en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!