y(0)=0

 Risposta accettata

Sean de Wolski
Sean de Wolski il 25 Mag 2011

1 voto

MATLAB indexing starts at 1.
y(1) = 0;

Più risposte (1)

Walter Roberson
Walter Roberson il 25 Mag 2011

0 voti

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!

Translated by