title: How can we find percentile or quantile of gamma distribution in MATLAB?
body: <p>Suppose that we have this gamma distribution in MATLAB:</p>
  
  <p><a href="https://i.stack.imgur.com/sGCuj.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sGCuj.jpg" alt="enter image description here"></a></p>
  
  <p>I want this part of distribution with higher density (x-axis range). How can I extract this in MATLAB? I fit this distribution using <code>histfit</code> function.</p>
  
  <p><a href="https://i.stack.imgur.com/3ycDo.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3ycDo.jpg" alt="enter image description here"></a></p>
  
  <p><strong>PS</strong>. My codes:</p>
  
  <pre><code>figure;
  histfit(Data,20,'gamma');
      [phat, pci] = gamfit(Data);
  
  phat =
  
     11.3360    4.2276
  
  pci =
  
      8.4434    3.1281
     15.2196    5.7136
  </code></pre>