採用された回答

Sean de Wolski
Sean de Wolski 2011 年 5 月 25 日

1 投票

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

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2011 年 5 月 25 日

0 投票

If you really must index at 0, then you will need to write a custom array class with your own subsref()

カテゴリ

ヘルプ センター および File Exchange で Matrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by