Filter löschen
Filter löschen

means of the 3rd dimension of a matrix

9 Ansichten (letzte 30 Tage)
Asl
Asl am 21 Okt. 2013
Kommentiert: Walter Roberson am 21 Okt. 2013
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 Kommentare
Asl
Asl am 21 Okt. 2013
Bearbeitet: Asl am 21 Okt. 2013
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 am 21 Okt. 2013
But, A=rand(3) is not 3 dimension

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 21 Okt. 2013
BB = mean(A, 3);
  2 Kommentare
Asl
Asl am 21 Okt. 2013
BB = mean(A, 3); works but BB = std(A, 3); does not work any idea=
Walter Roberson
Walter Roberson am 21 Okt. 2013
std(A,0,3)
As could be determined by looking at the documentation for std()

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by