selecting specific layers in the 3rd dimension of a matric

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 日

0 投票

squeeze(mean(A(:,:,43:53)))

1 件のコメント

Cside
Cside 2019 年 8 月 13 日
thank you for the speedy reply! You are rlly a MVP :D

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で AI for Wireless についてさらに検索

質問済み:

2019 年 8 月 13 日

コメント済み:

2019 年 8 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by