Hello.
For example, I don't know what is the mean(A,3).
Who's anybody know that? please help me.

 채택된 답변

Stephen23
Stephen23 2017년 4월 26일
편집: Stephen23 2017년 4월 26일

0 개 추천

Why not read the MATLAB help? You can do this easily from MATLAB itself:
doc mean
Or by using your favorite internet search engine (it takes just 0.1 seconds).
The MATLAB documentation for mean states that " M = mean(A,dim) returns the mean along dimension dim ".
So your code finds the mean along the third dimension.

추가 답변 (1개)

KSSV
KSSV 2017년 4월 26일

0 개 추천

mean(k,3) gives mean of a 3D matrix.
K = rand(2,2,2) ;
mean(K,3)

댓글 수: 1

Stephen23
Stephen23 2017년 4월 26일
편집: Stephen23 2017년 4월 26일
@KSSV: What is the "mean(k,3) gives mean of a 3D matrix" actually?
Is it the mean of all elements, the mean of some elements, the mean along a particular dimension? Which of those are you trying to explain? (it is one of them, but which one?)

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

2017년 4월 26일

편집:

2017년 4월 26일

Community Treasure Hunt

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

Start Hunting!