I am working on this piece of code which is basically k-means clustering and I'm really stuck at a point where cell needs to be reshaped into matrix:
with error: Error using reshape To RESHAPE the number of elements must not change.
Any help would be highly appreciated.
No products are associated with this question.
Do you understand why the following example produces an error? The error your code gives is due to the same thing.
>> reshape(rand(2,3),5,1) Error using reshape To RESHAPE the number of elements must not change.