Index exceeds the number of array elements (5).
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
The ecuation that i use to calculate my relative error tells me that exceeds the number of array elements.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/300908/image.png)
0 Kommentare
Antworten (1)
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.
Siehe auch
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!