Borrar filtros
Borrar filtros

Subscript indices must either be real positive integers or logicals.

2 visualizaciones (últimos 30 días)
Nithya SIvasamy
Nithya SIvasamy el 30 de En. de 2016
Comentada: Stephen23 el 30 de En. de 2016
I got this error when i found the mean of a histogram. I have used
[pixelCount grayLevels] = imhist(Im);
meanOriginal = sum(pixelCount .* grayLevels) / sum(pixelCount);
  1 comentario
Stephen23
Stephen23 el 30 de En. de 2016
Have you defined a varibale named sum ?
Please tell us exactly the output of
which sum -all

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 30 de En. de 2016
You have probably named a variable sum, interfering with the use of the sum function.

Categorías

Más información sobre Histograms 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