Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



Re: storing row vectors in a matrix
Posted:
Feb 4, 2013 3:50 AM


>> for i = 1 : 26 image_vector = rand(100,100); transformed_image_vector = reshape(image_vector,1,10000); % your userdefined function. all_vectors(i,:) = transformed_image_vector; end
Barry
"Prateek " <malikprateek22@gmail.com> wrote in message <kenmmr$rfu$1@newscl01ah.mathworks.com>... > i want to read an image apply a function to it and convert the resulting matrix into a row vector and store the result in a matrix and i need to do the whole process 26 times for 26 different images > for eg i have image of 100x100 for which i have a user defined function which processes it and i have converted this 100x100 matrix in to a 1x10000 vector now i want to store it into a matrix and 25 other similar to it the result should be a matrix of 26x10000 dimensions > please help me to store these row vectors(1x10000) in to a matrix(26x10000)



