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


Barbara
Posts:
2
Registered:
10/31/13


Re: storing row vectors in a matrix
Posted:
Oct 31, 2013 12:03 PM


"Barry Shaw" <Barry@h.com> wrote in message <keqkcv$gge$1@newscl01ah.mathworks.com>... > Post your code. > > Are you forgetting to put in the 'i' (my code below) when assigning it to your matrix? > > "Prateek " <malikprateek22@gmail.com> wrote in message <keohsr$69h$1@newscl01ah.mathworks.com>... > > "Barry Shaw" <Barry@h.com> wrote in message <kenso0$ilb$1@newscl01ah.mathworks.com>... > > > > > > >> 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 > > > > > >hey Barry i have been doing the same but the result is not as expected what it does is store the 26th image in all the rows
Hello I have the same problem, there is only one row stored. There must something else be wrong...
The error message: Subscripted assignment dimension mismatch.
Barbara



