Index exceeds the number of array elements (5).
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Katalin
le 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.
Voir également
Catégories
En savoir plus sur Matrix Indexing dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!