Index exceeds the number of array elements (5).

2 ビュー (過去 30 日間)
Michel Lopes Villaluz
Michel Lopes Villaluz 2020 年 5 月 25 日
コメント済み: darova 2020 年 5 月 26 日
The ecuation that i use to calculate my relative error tells me that exceeds the number of array elements.

回答 (1 件)

Katalin
Katalin 2020 年 5 月 26 日
It is because:
ex = poly([-1 1 -2 2])
This is a vector of 5 elements and you are trying to access element 6-10 in your loop.

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by