title: Getting mean and standard deviation from a histogram
body: <p>is it possible for me to get the mean and standard deviation for that specific bar(bin) in a histogram? If yes, what are the function or command that I should use?</p>
  
  <p>For example,
  Let say I have a matrix of (1000,1) measurements and I would like to group it in a histogram.
  The y-axis is the number of measurements and x-axis is the measurement. For x-axis, we will have a range of 0-9, 10-19, 20-29, 30-39 and so on. How do I possibly get the standard deviation and mean of just the 20-29 range?</p>
  
  <p>I am using octave.Thank you.</p>