how to write the mean equation

4 vues (au cours des 30 derniers jours)
Emily Gallagher
Emily Gallagher le 17 Sep 2019
Modifié(e) : Stephan le 17 Sep 2019
How do I manually enter the mean equation?
  1 commentaire
Adam
Adam le 17 Sep 2019
mean of what? There's a mean function that does it for you. Otherwise you can use
doc sum
if you really want to do it without the mean function.
Or you can add all your numbers together in a for loop if you don't want to use sum either.

Connectez-vous pour commenter.

Réponses (1)

Stephan
Stephan le 17 Sep 2019
Modifié(e) : Stephan le 17 Sep 2019
A_mean = sum(A,'all')/numel(A)

Catégories

En savoir plus sur Language Fundamentals 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