Detection of objects

 Respuesta aceptada

Sean de Wolski
Sean de Wolski el 4 de Feb. de 2011

0 votos

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

Más respuestas (1)

Vieniava
Vieniava el 4 de Feb. de 2011

0 votos

in Matlab vector/matrix indexing starts from 1, not from 0, so you should change for-loop starting value on 1 .

Categorías

Community Treasure Hunt

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

Start Hunting!

Translated by