필터 지우기
필터 지우기

Subscript indices must either be real positive integers or logicals.

조회 수: 1 (최근 30일)
Nithya SIvasamy
Nithya SIvasamy 2016년 1월 30일
댓글: Stephen23 2016년 1월 30일
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
Stephen23
Stephen23 2016년 1월 30일
Have you defined a varibale named sum ?
Please tell us exactly the output of
which sum -all

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2016년 1월 30일
You have probably named a variable sum, interfering with the use of the sum function.

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by