% i have a matrix 4×32 , and i need to sum the element to obtain a matrix 4×4

clear all

clc

A= randn(4,32) ;

% (1 5 9 13 17 21 25 29) i need to take this colum and sum in row ( sum,2) so i obtain a matrix 4×1

%(2 6 10 14 18 22 26 30) i need to take this colum and sum in row ( sum,2) so i obtain a matrix 4×1

%(3 7 11 15 19 23 27 31) i need to take this colum and sum in row ( sum,2) so i obtain a matrix 4×1

%(4 8 12 16 20 24 28 32) i need to take this colum and sum in row ( sum,2) so i obtain a matrix 4×1

%to obtain at the end a matrix 4×4

% thank you

## Best Answer