[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: index = 0
From: |
asha g |
Subject: |
Re: index = 0 |
Date: |
Tue, 7 Apr 2009 13:15:19 +0530 (IST) |
I did just that - changed from N = 1 to N= 12
Asha
Goals too clearly defined can become blinkers. Mary Catherine
Bateson
--- On Tue, 7/4/09, Przemek Klosowski <address@hidden> wrote:
> From: Przemek Klosowski <address@hidden>
> Subject: Re: index = 0
> To: address@hidden
> Date: Tuesday, 7 April, 2009, 12:53 AM
> You can't have an array with indices
> starting at zero. You have to
> rewrite your code so that the boundary index is 1 and N+2.
> For a quick
> and easy solution you could write a function that
> accesses your array:
>
> function e=v(n);e=v(n+1);endfunction
>
> but if you wanted to write as well as read you'd need more
> code.
>
Add more friends to your messenger and enjoy! Go to
http://messenger.yahoo.com/invite/