Hello everybody, my output is a structure like Run = theta: {1x10 cell} sigma:{1x10 cell} I want to compute the mean of theta and sigma. I would be grateful if you could lead howI should do that?

1 visualización (últimos 30 días)
Run =
theta: {1x10 cell}
sigma: {1x10 cell}
  2 comentarios
Thorsten
Thorsten el 30 de Jun. de 2015
Please formally accept my answer, such that the question is marked as "answered" and is not considered by others anymore.

Iniciar sesión para comentar.

Respuestas (1)

Thorsten
Thorsten el 30 de Jun. de 2015
Editada: Thorsten el 30 de Jun. de 2015
mean(cell2mat(Run.theta))
mean(cell2mat(Run.sigma))
You could also rewrite your program and return a 10x2 matrix Y with the 10 theta values in the first row and the 10 sigma values in the second row, and then compute the mean of both using
mean(Y)

Categorías

Más información sobre Spectral Measurements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by