필터 지우기
필터 지우기

means of the 3rd dimension of a matrix

조회 수: 9 (최근 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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by