[Scilab-users] Strange behavior of interpln function

fujimoto2005 fujimoto2005 at gmail.com
Tue Sep 15 05:13:11 CEST 2015


I expect to get the value of yy  less than 0.01 which is the most left value
of x.
But actually I get  0.0591.

When I adopt only the first 3 elements of x and y,it works rightly.
I get 0.0100075 of yy2.

Please tell me where I was wrong in the first script.

Best regards

**************
x1=[-1604,-23982,-31978,-38883,-45638,-52660,-59782,-60536,-67648,-75176,-82997,-92066,-101438,-110067,-119852,-130754,-142046,-153749,-165495]
y1=[0.01,0.04,0.05,0.06,0.07,0.08,0.09,0.091,0.1,0.11,0.12,0.13,0.14,0.15,0.16,0.17,0.18,0.19,0.2]
yy1=interpln([x1;y1],0)

x2=[-1604,-23982,-31978]
y2=[0.01,0.04,0.05]
yy2=interpln([x2;y2],0)



--
View this message in context: http://mailinglists.scilab.org/Strange-behavior-of-interpln-function-tp4032824.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list