Filter löschen
Filter löschen

Index exceeds the number of array elements (5).

1 Ansicht (letzte 30 Tage)
Michel Lopes Villaluz
Michel Lopes Villaluz am 25 Mai 2020
Kommentiert: darova am 26 Mai 2020
The ecuation that i use to calculate my relative error tells me that exceeds the number of array elements.

Antworten (1)

Katalin
Katalin am 26 Mai 2020
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.

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by