필터 지우기
필터 지우기

how to do the 3d averaging ?

조회 수: 2 (최근 30일)
Lilya
Lilya 2018년 9월 19일
댓글: Lilya 2018년 9월 19일
Hi all,
I have a 3d matrix that has the dim of 61*81*3 (data*data*days) I want to calculate the mean of the 3rd dimension from the 2d matrix (61*81) which means every day has the 61*81 matrix. please pay attention that contains NaN elements.
anyone can help with that? I do appreciate the effort.
thanks

채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 9월 19일
편집: KALYAN ACHARJYA 2018년 9월 19일
This is how you can do average of 3 D matrix
average_data=mean(data,3);
Mean of 3 rd dimension
average_3plabne=mean(data(:,:,3));
  댓글 수: 1
Lilya
Lilya 2018년 9월 19일
Thank you! it works

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Discrete Math에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by