difference between using max and length in histogram
이전 댓글 표시
What it the difference between using max and length in histogram?
댓글 수: 1
Azzi Abdelmalek
2014년 7월 25일
Max of what? and length of what?
채택된 답변
추가 답변 (1개)
Josh
2014년 7월 25일
0 개 추천
댓글 수: 1
Image Analyst
2014년 7월 26일
No. X(i) can be any integer value between 1 or and length(p)+1. Those values are independent of the max value of X since you could have different X(i). We don't know how long X is. For example, maybe X = [10, 30, 100, 4, 16], so length(X) = 5 while max(X) = 100. Rand is different for each i so that's why the values of X could be different for each i, and thus the max value is independent of the length, except in very coincidental cases.
카테고리
도움말 센터 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!