how to write the mean equation

How do I manually enter the mean equation?

1 comentario

Adam
Adam el 17 de Sept. de 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.

Iniciar sesión para comentar.

Respuestas (1)

Stephan
Stephan el 17 de Sept. de 2019
Editada: Stephan el 17 de Sept. de 2019
A_mean = sum(A,'all')/numel(A)

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 17 de Sept. de 2019

Editada:

el 17 de Sept. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by