Subscript indices must either be real positive integers or logicals.
조회 수: 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
2016년 1월 30일
Have you defined a varibale named sum ?
Please tell us exactly the output of
which sum -all
답변 (1개)
Walter Roberson
2016년 1월 30일
You have probably named a variable sum, interfering with the use of the sum function.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!