Subscript indices must either be real positive integers or logicals.
Mostrar comentarios más antiguos
Hi,
I get this error ,
Subscript indices must either be real positive integers or logicals. The line with this error is,
Error in motionComp (line 34)
imageComp(i:i+mbSize-1,j:j+mbSize-1) =
imgI(refBlkVer:refBlkVer+mbSize-1,refBlkHor:refBlkHor+mbSize-1);
Please help me in resolving this error and thanks in advance.
Respuesta aceptada
Más respuestas (1)
Jos (10584)
el 22 de Sept. de 2014
Check the values of the indexing variables, for instance, using:
disp(i)
disp(refBlkVer)
It will probably show that they are NOT real positive integers.
Categorías
Más información sobre Elementary Math en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!