selecting specific layers in the 3rd dimension of a matric

1 次查看(过去 30 天)
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 中查找有关 AI for Wireless 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by