Borrar filtros
Borrar filtros

how to solve the error like index exceeds matrix dimensions?

1 visualización (últimos 30 días)
mujtaba
mujtaba el 2 de Jul. de 2014
Comentada: Geoff Hayes el 2 de Jul. de 2014
i m using image acquisiiton toolbox in which i m trying to convert a yuy into rgb format vid = videoinput('winvideo',1,vinfo.SupportedFormats{'1280*720'}); but in this function the error comes like index exceeds matrix dimensions how can i solve it ?
  1 comentario
Geoff Hayes
Geoff Hayes el 2 de Jul. de 2014
What this error typically means is that the code is trying to access a vector or matrix element using an index that lies outside the dimensions of the matrix. For example, if Z is a 2x2 matrix, then Z(3,1) will throw this error.
When your code raises this error message, are you given any other information as to the line number that corresponds to this error?
I noticed that the text string for the format is
1280*720
Should this be
1280x720
instead? i.e with an x instead of the asterisk?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by