Combining multiple columns into one matrix in Matalb

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 5K views
bashar_aden
Messages
1
Reaction score
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
 
Physics news on Phys.org
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.