MATLAB Answers

How to plot point clouds and linear regression line in the same plot?

4 views (last 30 days)
Antonia Mocan
Antonia Mocan on 26 Nov 2020
Answered: Star Strider on 26 Nov 2020
I have a linear regression with:
p=polyfit(X,Y,1) %p=[0.7,1.00]
c=polyval(p,[2.5,3]) %c=[2.75,3.10]


Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!