Just use rand() to randomly pick a row and column in the range 1 to half the width and extract it subMatrix = fullMatrix(row1:row2, col1:col2); I'm sure you can figure out how to get row1, etc. using rand. (I'm leaving some of the work to you in case this is a homework problem, which it sounds like it is.)
Best Answer