Calculate mean of different trials

2 visualizaciones (últimos 30 días)
Hans Janssen
Hans Janssen el 3 de En. de 2015
Comentada: Chad Greene el 3 de En. de 2015
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 comentario
Chad Greene
Chad Greene el 3 de En. de 2015
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.

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by