Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. h = histogram(file,50);
  2. %Find index of maximum
  3. [~, index]= max(h.Values);
  4.  
  5. delta = h.BinLimits(2)-h.BinLimits(1);
  6. % find the range for a single bin
  7. slot = delta/(h.NumBins);
  8. %location = minimum y + (index of maximum)*slot
  9. location = h.BinLimits(1) + index*slot;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement