The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: storing row vectors in a matrix
Replies: 4   Last Post: Oct 31, 2013 12:03 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Barry Shaw

Posts: 32
Registered: 2/16/12
Re: storing row vectors in a matrix
Posted: Feb 5, 2013 4:46 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Post your code.

Are you forgetting to put in the 'i' (my code below) when assigning it to your matrix?

"Prateek " <> wrote in message <keohsr$69h$>...
> "Barry Shaw" <> wrote in message <kenso0$ilb$>...
> >
> > >> for i = 1 : 26
> > image_vector = rand(100,100);
> > transformed_image_vector = reshape(image_vector,1,10000); % your user-defined 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

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.