how to average a three dimensional matrix at each level?

1 回表示 (過去 30 日間)
TRAILOKYA
TRAILOKYA 2014 年 5 月 7 日
回答済み: Azzi Abdelmalek 2014 年 5 月 7 日
Sir, I have a matrix of dimension (40*40*16)which are for latitude, longitude and altitude. I need to average over latitude and longitude for each altitude so that i can get the resultant matrix of dimension (1*16). Please help me.
thanks

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 5 月 7 日
a=rand(40,40,16) % Example
out=squeeze(mean(mean(a)))

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by