help-octave
[Top][All Lists]
Advanced

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

HELP please, Can't fit data properly


From: T.G.ALG
Subject: HELP please, Can't fit data properly
Date: Wed, 3 Oct 2018 11:52:24 -0500 (CDT)

Hi, I'm trying to fit some data to a function of degree 4 or 5, but when I
plot it, it doesn't fit:

DATA:
C30 =

   0.063330   0.057200   0.052870   0.047380   0.044860   0.039710  
0.037070   0.036030   0.034990
t =

    1.0000    1.5000    2.0000    3.0000    5.0000    7.0000   10.0000  
13.0000   18.0000

FIT:
p=polyfit(t,C30,4)

   0.0000027990  -0.0001193780   0.0018221783  -0.0125401220   0.0727802050

The problem is that when I plot(t,C30) and plot(p) I get totally different
curves, am I missing somethiing???



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



reply via email to

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