Index exceeds matrix dimensions
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Respuesta aceptada
Adam
el 29 de Mzo. de 2017
Editada: Adam
el 29 de Mzo. de 2017
You are indexing into an array of 240 elements in the first case, 300 elements in the second case.
You haven't told us what is in IX, but even if we assume it is just integers between 1 and 300 in some arbitrary order this clearly will give an error when you index into the first array.
So I assume IX contains at least 1 value > 240
Please give details of matrix sizes and anything else relevant after (or before) the code though, don't mix them together into some strange pseudo-code, it makes it more difficult to understand what is actually code and what is just you adding information.
1 comentario
muhammad haris
el 29 de Mzo. de 2017
Editada: muhammad haris
el 29 de Mzo. de 2017
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!