|
On Monday, July 16, 2012 5:03:22 PM UTC+12, Muhammad Imran wrote:
> I am using reshape function like below
> pixel_labels = reshape(data_idxs,6,6144);
>
> here data_idxs is a 6144X1 vector return by the kmenas
> 6 are the rows of my original vector that i input to the kmeans and 6144 are the columns of the origional vector.
>
> when i run this code it give me the fallowing error
> ??? Error using ==> reshape
> To RESHAPE the number of elements must not change.
>
> please help me. actually i want to print the segmented image.
Try:
pixel_labels = reshape(data_idxs,6,[]);
|