Index exceeds the number of array elements (5).
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
The ecuation that i use to calculate my relative error tells me that exceeds the number of array elements.
0 Commenti
Risposte (1)
Katalin
il 26 Mag 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.
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!