Error using RESHAPE but I'm not using reshape
Mostra commenti meno recenti
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 Commenti
Rednar
il 22 Lug 2013
Jan
il 22 Lug 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
il 23 Lug 2013
Cedric
il 23 Lug 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 ;-)
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Startup and Shutdown in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!