[scilab-Users] Problem with loop

Antoine Monmayrant antoine.monmayrant at laas.fr
Thu Sep 30 12:58:38 CEST 2010


marcin.wozniczka Gazeta.pl a écrit :
> Hi,
>
> I have problem with creating loop.
> I want to create one loop in which are another several (maybe 20) 
> loops, but my problem is contecting wih correct definition of this 
> loop. I have one matrix (call it 'A') with datas which are using in 
> the next loops. And the idea of this loop is to take some data from 
> matrix A, use next function. When loops will count everything what I 
> want and create new matrix with new data. Later it has to use new data 
> and data in matrix A to repeat all this function untill will be used 
> all the thata from the matrix A (data which will used are deleted from 
> this matrix).
> If you didn't understand me I can send scilab file with this function.
Indeed, some clarification could help us helping you!
I am not sure I got you correctly, but it seems to me that your function 
could work directly on the matrix A instead of each elements of it, no?
Somethting along the line of:

matrix_B= my_Matrix_function(matrix_A)
instead of
for i, for j,  B(i,j)=my_Scalar_function(A(i,j))
>
> -- 
> Marcin Woźniczka
Antoine



More information about the users mailing list