title: How to get the upper limit of a integration?
body: <p>I have a probability distribution function which is the following:</p>
  <pre><code>f = @(x) h0 * (1/sqrt(2*pi*sig2)) .* exp(-(x-mh0).^2 / (2*sig2))+ (1-h0) * (1/sqrt(2*pi*sig2)) .* exp(-(x-mh1).^2 / (2*sig2)); 
  </code></pre>
  <p>I am doing this <strong>Matlab</strong>. Other than x, everything is constant.</p>
  <p>The range for this function is (-4 , 8). I would like to divide this area into equal mass i.e. 1/10 ( 10 intervals, each with mass 1/10).</p>
  <p>I am thinking about integrating it and check the upper limit as know the result of the integration. But I didn't find a way to do this?
  Can anyone please help me with this?
  Thanks in advance</p>