Borrar filtros
Borrar filtros

i have to take mean value for each element of the matrix of an image how can i do that

2 visualizaciones (últimos 30 días)
i have to take mean value for each element of the matrix of an image how can i do that

Respuesta aceptada

Walter Roberson
Walter Roberson el 19 de Oct. de 2012
mean(TheMatrix(:))
  1 comentario
Matt J
Matt J el 19 de Oct. de 2012
Editada: Matt J el 19 de Oct. de 2012
For large non-double arrays, this is more robust against overflow:
meanval=sum(A(:),'double')/numel(A);

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by