selecting specific layers in the 3rd dimension of a matric

조회 수: 4 (최근 30일)
Cside
Cside 2019년 8월 13일
댓글: Cside 2019년 8월 13일
Hi, I have a matrix A of size 226 x 621 x 59. May I know how do I form a new matrix of A[:,:,(43;53)] - selecting only the 43-53rd layers in the 3rd dimension, and then finding the mean of the 11 layers, eventually forming a 2d matrix of the means?
Thank you, appreciate any help given :)

채택된 답변

madhan ravi
madhan ravi 2019년 8월 13일
squeeze(mean(A(:,:,43:53)))

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by