Borrar filtros
Borrar filtros

Hi, I'm new to matlab and wanted to find the mean of all the values in my matrix/data set and was wondering how I would do this?

1 visualización (últimos 30 días)
This
mean(a(:))
has been suggested but it has not worked for me.

Respuesta aceptada

Mathias Andersen
Mathias Andersen el 16 de Mayo de 2020
See the documentation for the mean command here
So if you want the mean of an entire matrix write the following
mean(a,'all')

Más respuestas (0)

Categorías

Más información sobre Shifting and Sorting Matrices 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