MATLAB: How to create matrix from another matrix

matrix create loop

Hi all. I have m(80×200) matrix. I want to take first 41 values from each column and create n(41×200) matrix. Do I need for loop for this?

Best Answer

You want the first 41 rows of your matrix
A(1:41,:)