y(0)=0

1 次查看(过去 30 天)
George
George 2011-5-25
why i cant do that ? y(0)=0; i really have to..

采纳的回答

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

更多回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by