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?

Risposte (1)

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)

1 Commento

I think you mean "with the 10 theta values in the first column and the 10 sigma values in the second column"

Accedi per commentare.

Categorie

Scopri di più su Mathematics in Centro assistenza e File Exchange

Tag

Richiesto:

il 30 Giu 2015

Commentato:

il 30 Giu 2015

Community Treasure Hunt

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

Start Hunting!

Translated by