help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linear Regression


From: LucaLuca
Subject: Re: Linear Regression
Date: Fri, 7 Dec 2018 18:06:51 -0600 (CST)

hi,
i try this example :

function esercizio_interpolazione()
  
  pkg load statistics
  
  a=[4 5 6 -1 0 4 -2 0 -3]
  
  b=[1 2 3 4 5 6 7 8 9]
  
  yi =polyfit(a',b',1)
  
  hold on
  plot(b',a','b')
  
  plot(yi,'c')
endfunction

look this pics:

https://gyazo.com/521d0d62cb33d334251e374c27fdce92







--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]