MATLAB: I have a 6000x9424x50 matrix and want to convert it into 6000x9424x10 and 6000x9424x20?? I meant to to split 50 bands to 10 or 20 bands individually

dspworkspace

band1(6000:9424;10) will this work?

Best Answer

your_matrix = rand(6000,9424,50); % random matrix
M_10 = your_matrix(:,:,1:10); % 10 bands
M_20 = your_matrix(:,:,11:30); % 20 next bands