MATLAB: Reshape and sum multi-dimensional matrix matrixmultidimensionalreshapesum Hi, I have a 20-by-30-by-40 matrix. I would like to sum each two page of the third dimension. In the end, I need to have a 20-by-30-by-20 matrix. I appreciate if you could help me. Best Answer Where A is your array:A(:,:,1:2:end) + A(:,:,2:2:end) Related SolutionsMATLAB: How can i reshape a matrix into a vector reshape(flipud(A).',[],1) MATLAB: From two to three dimensional matrix doc reshape Related QuestionReshape 3d to 2d arrayI have a 20×1 vertical matrix. I want to take the averages of the pairs in order and display them in another matrix. HowArray to matrixHow to average a three dimensional matrix at each levelI have 3*3*20 matrix and 1*1*20 matrix. how to multiply. I have multiply q and zaMultiplication question in 3 dim
Best Answer