[scilab-Users] Accessing array element

Mathieu Dubois mathieu.dubois at limsi.fr
Mon May 23 03:32:15 CEST 2011


Dear Peng,

In scilab the operator to access the element of an array is: ().

With this your example works.
Mathieu

Le 23/05/2011 01:26, Peng Du a écrit :
> Hello everyone,
>
> Is there anyway in Scilab that I can access specific array elements
> using variable as index?
>
> For example:
> i=1;
> holder= [0 0 0 0 0 0 0 0];
>
> holder[i]=2;
>
> Thanks very much.
>
> Best regards,
>
> Peng



More information about the users mailing list