title: Combine Histogram and Cumulative Distribution Matlab
body: <p>How do I overlay the cumulative distribution of some data over a histogram of the same data?
  I have the following code:</p>
  
  <pre><code>DistributionData=Results(end,:);
  figure(4)
  clf
  nbins = 100;
  hist(DistributionData,nbins)
  hold on
  cdfplot(DistributionData)
  hold off
  </code></pre>
  
  <p>But because the cdf is on a different scale I need to have that on a second y-axis. Ideally I want to plot the inverse cdf also.</p>