Changing lower bound of an array
6 views (last 30 days)
Azzi Abdelmalek on 24 May 2013
Example: y(n)=n^2+1 and you want to start from 0
% y(1) correspond to index 0
Daniel Shub on 24 May 2013
I believe with a huge amount of work overloading some of the key functions (e.g., subsref and subsasgn) you can probably achieve a pretty seamless re-indexing interface. That said, even if it was easy, DO NOT DO IT. MATLAB uses 1-based indexing. Get used to it.