Calculate mean of different trials

조회 수: 2 (최근 30일)
Hans Janssen
Hans Janssen 2015년 1월 3일
댓글: Chad Greene 2015년 1월 3일
Hi guys,
For my assignement I have to calculate the mean of n-different trials. There are 5 subjects who conducted 2 experiments. I stored the data in a data 1*5 struct, i_pp for every subject. In the data struct I have a 1x8 struct for every experiment. 5 of the first en 3 trials of the second experiment. In this struct every experiment has a 1x1 struct consisting of 6 markers each with 326x3 datapoints (x,y and z).
Now I need to calculate the mean per each marker of every subject in the x-dimension. I have absolutely no idea what to do with my for-loops to calculate the mean. I need to have 6 mean-values per subject.
I hope you guys have a clue of my situation and are able to help me
Kind Regards
  댓글 수: 1
Chad Greene
Chad Greene 2015년 1월 3일
I have a feeling the Matlab aspect of this question is straightforward, but no one has answered it yet because it is difficult to follow your first paragraph. It seems that you have many levels and sub-levels and sub-sub levels of data, but it's hard to visualize the data structure or what you're trying to do.
Two actions that will help you get an answer:
  1. Draw a diagram of your data structure and directly indicate on the diagram what numerical values you're trying to get.
  2. Upload a .mat file with your data in it.

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

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by