y(0)=0

1 Ansicht (letzte 30 Tage)
George
George am 25 Mai 2011
why i cant do that ? y(0)=0; i really have to..

Akzeptierte Antwort

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

Weitere Antworten (1)

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

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by