Combining multiple columns into one matrix in Matalb

  • #1
bashar_aden
1
0
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
Insights Author
Gold Member
2,564
715
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.
 

Suggested for: Combining multiple columns into one matrix in Matalb

Replies
5
Views
585
  • Last Post
Replies
2
Views
403
Replies
2
Views
2K
Replies
0
Views
2K
Replies
0
Views
658
  • Last Post
Replies
4
Views
1K
  • Last Post
Replies
5
Views
258
  • Last Post
Replies
2
Views
3K
Replies
1
Views
448
Top