means of the 3rd dimension of a matrix

4 ビュー (過去 30 日間)
Asl
Asl 2013 年 10 月 21 日
コメント済み: Walter Roberson 2013 年 10 月 21 日
AA = rand(3) I want a 2d matrix BB containing means of 3rd dimension of matrix A How I can do this smartly? Thanks
  3 件のコメント
Asl
Asl 2013 年 10 月 21 日
編集済み: Asl 2013 年 10 月 21 日
such a martix I want BB = [
mean(a(1,1,:) mean(a(1,2,:) ; mean(a(2,1,:) mean(a(2,2,:)
]
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 10 月 21 日
But, A=rand(3) is not 3 dimension

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

採用された回答

Walter Roberson
Walter Roberson 2013 年 10 月 21 日
BB = mean(A, 3);
  2 件のコメント
Asl
Asl 2013 年 10 月 21 日
BB = mean(A, 3); works but BB = std(A, 3); does not work any idea=
Walter Roberson
Walter Roberson 2013 年 10 月 21 日
std(A,0,3)
As could be determined by looking at the documentation for std()

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by