Arrays

조회 수: 4 (최근 30일)
Ahmad
Ahmad 2011년 12월 5일
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
David Young
David Young 2011년 12월 5일
How are the column vectors stored or accessed?
David Young
David Young 2011년 12월 5일
If they're stored as variables n1, n2 etc., what is the problem with the code you give in your question?

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2011년 12월 5일
  댓글 수: 4
Sean de Wolski
Sean de Wolski 2011년 12월 5일
How about cell2mat (if all of the cells are the same size)
Ahmad
Ahmad 2011년 12월 6일
Thanks for the help Walter Roberson. :)

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Robert Cumming
Robert Cumming 2011년 12월 5일
  댓글 수: 2
Ahmad
Ahmad 2011년 12월 5일
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 2011년 12월 5일
http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by