how do i find a mean value from a 10X10 matrix ?

1 visualización (últimos 30 días)
philip
philip el 23 de Oct. de 2014
Comentada: Guillaume el 23 de Oct. de 2014
hi can any one help me on how to fine the mean value from a 10x10 matrix ?

Respuestas (1)

Guillaume
Guillaume el 23 de Oct. de 2014
Editada: Guillaume el 23 de Oct. de 2014
doc mean
Have you followed matlab's getting started tutorial. Seriously, this is such a basic question and mean is even covered in the tutorial.
  2 comentarios
philip
philip el 23 de Oct. de 2014
ok but please be aware I am a beginner and I have never used this software be four! so if you would please inform me I would be very appreciative.
Guillaume
Guillaume el 23 de Oct. de 2014
Well, follow the tutorial I linked, it's very easy to follow and will give you the basis necessary.
Then lookup the mean function.
You'll want to transform your matrix into a vector (otherwise you get the mean of each column), so the answer is simply:
m = mean(matrix(:));

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with MATLAB 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