Combining multiple columns into one matrix in Matalb

  • #1

Main Question or Discussion Point

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,357
488
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
2K
Replies
5
Views
16K
Replies
4
Views
5K
  • Last Post
Replies
1
Views
3K
Replies
0
Views
1K
Replies
1
Views
19K
Replies
1
Views
6K
Top