Borrar filtros
Borrar filtros

Detection of objects

2 visualizaciones (últimos 30 días)
jyothsna chennareddy
jyothsna chennareddy el 4 de Feb. de 2011
Subscript indices must either be real positive integers or logicals

Respuesta aceptada

Sean de Wolski
Sean de Wolski el 4 de Feb. de 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
  1 comentario
jyothsna chennareddy
jyothsna chennareddy el 4 de Feb. de 2011
Thank you so much sir

Iniciar sesión para comentar.

Más respuestas (1)

Vieniava
Vieniava el 4 de Feb. de 2011
in Matlab vector/matrix indexing starts from 1, not from 0, so you should change for-loop starting value on 1 .

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by