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 4, 2013 3:50 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

>> 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;


"Prateek " <> wrote in message <kenmmr$rfu$>...
> 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)

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.