Feeds
提问
How to plot point clouds and linear regression line in the same plot?
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=[...
6 years 前 | 1 个回答 | 0
1
个回答提问
How i extract the components of a vector/matrix output ?
For example i have a function like a=polyfit(x,y,1) and the result is a= 0.300 1.00 How can i extract a(1)=0.300 and a(2)=1.0...
6 years 前 | 1 个回答 | 0
