Combining multiple columns into one matrix in Matalb

  • #1
Hi

I am a beginner in using Matlab software. I want to combine 300 columns into one matrix. The dimension of each column is 24x1. Meaning, the resultant matrix should have a dimension of 24x300. Anybody can help me in this?

Any help is much appreciated!

Thanks
 

Answers and Replies

  • #2
Dr Transport
Science Advisor
Gold Member
2,492
618
try:

for i =1:300
Big_Matrix(:,i) = small_matrix;
end

if that isn't right, then replace (:,i) by (i,:), I always screw it up and have to redo it.
 

Related Threads on Combining multiple columns into one matrix in Matalb

Replies
2
Views
3K
Replies
5
Views
16K
Replies
1
Views
3K
Replies
1
Views
951
  • Last Post
Replies
4
Views
2K
Replies
1
Views
7K
Top