Community Profile

photo

Antonia Mocan


Last seen: meer dan 3 jaar ago Active since 2020

Followers: 0   Following: 0

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


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=[...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


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...

meer dan 3 jaar ago | 1 answer | 0

1

answer