Error using RESHAPE but I'm not using reshape
Mostrar comentarios más antiguos
When executing one of my functions I'm getting:
Error using reshape To RESHAPE the number of elements must not change.
But my function doesn't even use reshape, any ideas of what is going on here? I mean, what other MATLAB function am I maybe using incorrectly that could be throwing this error?
5 comentarios
Rednar
el 22 de Jul. de 2013
Jan
el 22 de Jul. de 2013
Trust me Rednar, you did change not even not anything, but exactly the cause of the error. Matlab is 100% deterministic and you can be sure, that there was a reshape() in your code. The debugger Sean has suggested would have revealed where the problem occurs.
Rednar
el 23 de Jul. de 2013
Cedric
el 23 de Jul. de 2013
I don't think that Jan wanted to suggest that you were lying, but sometimes when we debug code, we check things out by e.g. commenting a few lines at different/random places, and we end up being unable of reproducing the bug when we want to ;-)
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!