This is a section of code from my program
%read in the message image and reshape it into a vector
file_name='innocence.bmp';
message=double(imread(file_name));
Mm=size(message,1); %height
Nm=size(message,2); %Width
message_vector=round(reshape(message,Mm*Nm,1)./2);
I am getting this error
??? Error using ==> reshape
TO RESHAPE the number of elements must not change.
Error in ==>dwt at 31 message_vector=round(reshape(message,Mm*Nm,1)./2);
What am I doing wrong?
If you just want to reshape your [Mm x Nm] matrix to a [1 x Mm*Nm] vector you can use: