[Scilab-users] find function failure in scilab6

Serge Steer Serge.Steer at inria.fr
Tue Sep 1 17:18:33 CEST 2015


Hello,

You forgot to attach the test.dat file.
But take care that two different values can give the same display.

To check it you can compute x(3)-y

Serge Steer
Le 01/09/2015 16:20, fujimoto2005 a écrit :
> Dear all.
> Save the attached file in current diorectry and run the following script.
> ******
> load('test.dat');
> disp(x);//x contains 0.1 as the 3rd elemnt.
> disp(y);//y is 0.1
> z=find(x==y);
> disp(z)//failure because z returns [] instead 3.
>
> ****
> Since x contains y as the 3rd element ,
> find(x==y) should return 3.
> But it returns [].
> Is there any error in my script or is this just a bug of scilab6?
>
> Best regards.
>
> filure_of_find_function.sce
> <http://mailinglists.scilab.org/file/n4032767/filure_of_find_function.sce>  
>
>
>
> --
> View this message in context: http://mailinglists.scilab.org/find-function-failure-in-scilab6-tp4032767.html
> Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>




More information about the users mailing list