How to calculate mean of specified row and column of multiple dataset of structure?

조회 수: 2 (최근 30일)
I'm dealing with a structure full of data, one of the data is called BEST and there are 50 of them so that is data(i).best in which i is from 1 to 50, each data(i).best contains a 10x10 table of numbers. I need to calculate mean of each row and column corresponding to each data(i).best, for example I need to sum up all of the data that are in data(i).best(5,7) (i is from 1 to 50) and devide it by 50. how am I supposed to do so? I tried using three layers of "for" and it didn't seem to help.

채택된 답변

Voss
Voss 2024년 7월 27일
result = mean(cat(3,data.best),3);
  댓글 수: 4
Sahand Annabi Milani
Sahand Annabi Milani 2024년 7월 27일
can you help with finding the standard deviation of data(i).best?

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by