y(0)=0

1 view (last 30 days)
George
George on 25 May 2011
why i cant do that ? y(0)=0; i really have to..

Accepted Answer

Sean de Wolski
Sean de Wolski on 25 May 2011
MATLAB indexing starts at 1.
y(1) = 0;

More Answers (1)

Walter Roberson
Walter Roberson on 25 May 2011
If you really must index at 0, then you will need to write a custom array class with your own subsref()

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!