Re: [Scilab-users] Strange behavior of interpln function
Hello, Thanks for your advice. I can fix the problem. Best regards. Fujmoto -- View this message in context: http://mailinglists.scilab.org/Strange-behavior-of-interpln-function-tp4032824p4032827.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] Strange behavior of interpln function
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 ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
[Scilab-users] Strange behavior of interpln function
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. ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users