[Scilab-users] Vectorfind with accuracy

Izabela Wójcik-Grząba iwoj at il.pw.edu.pl
Tue Nov 13 12:50:22 CET 2018


Hello,

Thanks, it looks like it's exactly what I need but it doesn't work in 
version 6.0.1. What should I do to implement it?

Iza





W dniu 12.11.2018 17:52, Stéphane Mottelet napisał(a):
> Le 12/11/2018 à 16:15, Izabela Wójcik-Grząba a écrit :
>> Hello,
>> 
>> I am wondering if it is possible to use "vectorfind" function with a 
>> given accuracy so it could find equal vectors even when there is a 
>> slight difference between their elements.
>> 
>> Thank you in advance.
>> Kind regards,
>> Iza
>> _______________________________________________
>> users mailing list
>> users at lists.scilab.org
>> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users
> 
> Hello,
> 
> 
> Please find attached a tweaked version of vectorfind with a fourth
> argument "tol". It can output the following stuff
> 
> alr=[1,2,2;
>      1.0001,2,1;
>      1,1,2;
>      1,1,1;
>      1,2,1];
> 
> ind = vectorfindtol(alr,[1,2,1],'r',1e-4)
> 
>  ind  =
> 
>    2.   5.
> 
> S.
> 
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users



More information about the users mailing list