Detection of objects
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Subscript indices must either be real positive integers or logicals
0 Commenti
Risposta accettata
Sean de Wolski
il 4 Feb 2011
is 0 a "real positive integer"?
Unlike other languages, MATLAB begins indexing at 1. e.g.
x(0) => your_error
x(1) => indexes first element
Più risposte (1)
Vieniava
il 4 Feb 2011
in Matlab vector/matrix indexing starts from 1, not from 0, so you should change for-loop starting value on 1 .
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!