[Scilab-users] Strange behavior of interpln function

sgougeon at free.fr sgougeon at free.fr
Tue Sep 15 07:28:07 CEST 2015


Hello,

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

--> help interpln
Description:
 given xyd a set of points in the xy-plane which increasing abscissae...


-->[x1,k] = gsort(x1,"g","i"); 
-->y1 = y1(k);
-->yy1 = interpln([x1;y1],0)
 yy1  =
    0.0078497  

SG



More information about the users mailing list