... and even clearer, with respect to your own notations:

--> A = rand(1,1000);  // test's data
--> B = rand(1,10000);
--> [a, b] = ndgrid(A, B);
--> size(a)  // same for b
 ans  =
   1000.   10000.
--> [v, i] = min(abs(a-b), *"c"*);

_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to