How to calculate mean of output in a for loop?

1 vue (au cours des 30 derniers jours)
Ellie Brown
Ellie Brown le 3 Déc 2019
Commenté : Rik le 4 Déc 2019
I
  1 commentaire
Rik
Rik le 4 Déc 2019
Does this editing away mean you have found a solution on your own?

Connectez-vous pour commenter.

Réponses (1)

Rik
Rik le 3 Déc 2019
If you want to calculate the mean and the variance you will have to store the output. Since you know the number of iterations, you can preallocate an appropriate vector.

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by