필터 지우기
필터 지우기

Index exceeds the number of array elements (5).

조회 수: 1 (최근 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 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