difference between using max and length in histogram
Afficher commentaires plus anciens
What it the difference between using max and length in histogram?
1 commentaire
Azzi Abdelmalek
le 25 Juil 2014
Max of what? and length of what?
Réponse acceptée
Plus de réponses (1)
Josh
le 25 Juil 2014
0 votes
1 commentaire
Image Analyst
le 26 Juil 2014
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.
Catégories
En savoir plus sur Histograms dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!