MATLAB: Create a loop of the 2nd row of a 4D cel

for loop

so currently I have MD_SD(:,:,1,1) =
[ 1.0868]
[ 0.0796]
[1x56 double]
MD_SD(:,:,2,1) =
[ 1.0861]
[ 0.0882]
[1x50 double]
MD_SD(:,:,3,1) =
[ 1.1721]
[ 0.1314]
[1x56 double]
is it possible to create a for loop such that I can get an array that displays the 2nd row of each of the cells i.e. [0.0796,0.0882,0.1314] thanks in advance

Best Answer

  • MD_SD(2,:,:) would do without a loop