Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- h = histogram(file,50);
- %Find index of maximum
- [~, index]= max(h.Values);
- delta = h.BinLimits(2)-h.BinLimits(1);
- % find the range for a single bin
- slot = delta/(h.NumBins);
- %location = minimum y + (index of maximum)*slot
- location = h.BinLimits(1) + index*slot;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement