Arrays

2 Ansichten (letzte 30 Tage)
Ahmad
Ahmad am 5 Dez. 2011
I have 'n' number of column vectors of size 3000.
I want to put these 'n' column vectors in a matrix like this
X = [n1 n2 n3 ...];
Any help is appreciated. Thanks
Edit I have an image matrix converted to vector. I have around 300 Image vectors now. I have to make a complete array with having all those 300 vectors. In that matrix there should be 1 column of each image vector. here n1 is my first image vector, n2 is second image vector and so on.
  2 Kommentare
David Young
David Young am 5 Dez. 2011
How are the column vectors stored or accessed?
David Young
David Young am 5 Dez. 2011
If they're stored as variables n1, n2 etc., what is the problem with the code you give in your question?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 5 Dez. 2011
  4 Kommentare
Sean de Wolski
Sean de Wolski am 5 Dez. 2011
How about cell2mat (if all of the cells are the same size)
Ahmad
Ahmad am 6 Dez. 2011
Thanks for the help Walter Roberson. :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Robert Cumming
Robert Cumming am 5 Dez. 2011
  2 Kommentare
Ahmad
Ahmad am 5 Dez. 2011
I have an image matrix converted to vector. I have around 300 Image vectors now. I have to make a complete array with having all those 300 vectors. In that matrix there should be 1 column of each image vector. here n1 is my first image vector, n2 is second image vector and so on.
Robert Cumming
Robert Cumming am 5 Dez. 2011
http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by