[Scilab-users] need a little help

P M p.muehlmann at gmail.com
Mon Feb 18 16:39:26 CET 2019


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 <sgougeon at free.fr
>:

> ... 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
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20190218/3dbeb57f/attachment.htm>


More information about the users mailing list