Ok, thanks for your help..

Actually the sizes I gave where just for demonstation.

If I use the real array sizes, I get a message: can not allocate  7469.60MB
memory...which maybe is true.
available RAM after starting Scilab is 3701 MB

actual array sizes:

A has 1076 elements
B has 1'350'000 elements, with a lot of Nan's in it

if I use thrownan(B) I can reduce the array size of B to 867751 elements
but still get the Message above.

(without thrownan() the memory scilab wants to allocate is even bigger)




Am Fr., 15. Feb. 2019 um 23:25 Uhr schrieb Samuel Gougeon <[email protected]
>:

> ... 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
>
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to