Prev: How to extract different rows and columns from different images and then mixing them to form new matrix
Next: pls help me.
From: Albert Lee on 18 Apr 2010 09:50 Dear Matlab community, I have applied the PSO toolbox into the Zakharov test function. But, after I finish the thing, and "set path" it, then start to run the code. But, there is some error occuring. ??? Error using ==> reshape To RESHAPE the number of elements must not change. (Matlab problem) What should I do to eliminate the error so that it can run the code? Thank you.
From: John D'Errico on 18 Apr 2010 10:07
"Albert Lee" <cheeping2003(a)gmail.com> wrote in message <hqf2mf$dv3$1(a)fred.mathworks.com>... > Dear Matlab community, > I have applied the PSO toolbox into the Zakharov test function. But, after I finish the thing, and "set path" it, then start to run the code. But, there is some error occuring. > > ??? Error using ==> reshape > To RESHAPE the number of elements must not change. (Matlab problem) > > What should I do to eliminate the error so that it can run the code? Thank you. There are MANY thing that you might have done wrong here. But we cannot guess your error from the vague information you have provided. You may try the debugger. In fact, it is also true that careful reading of the error message will help you. But since you don't even show the complete error message, the crystal ball is simply too cloudy. john |