[scilab-Users] can index starts from zero

Samuel GOUGEON Samuel.Gougeon at univ-lemans.fr
Mon Oct 25 12:08:53 CEST 2010


  ----- Message d'origine -----
De : Manjusha Joshi
Date : 25/10/2010 11:57:
> Hello,
>
> If I define V=[ 2, 3,4]
> V(1)=2
> Can I set index such that V(0)=2
AFAIK, it is not possible. You have to shift all the indices by 1 in your formula.

The syntax L(0)=value is only possible in lists L, to insert a new component at
the beginning of the list. But then, the index of the inserted value is 
automatically
reset to 1 while the ones of other components are also incremented.

I am afraid that you have to cope with this technical design...

Regards
Samuel




More information about the users mailing list