title: How to evaluate emprical cdf at given points in Matlab?
body: <p>Suppose I have a sequence of scalar points subject to a unknown distribution.</p>
  
  <p>From the sequence of points, we can get the empirical cdf.</p>
  
  <p>I was wondering if there is some way in Matlab to evaluate this empirical cdf at any point? For example, evaluate it at the same sequence of points that are used to build the empirical cdf?</p>
  
  <p>I have looked up the function <code>ecdf</code> at <a href="http://www.mathworks.com/help/stats/ecdf.html" rel="nofollow">http://www.mathworks.com/help/stats/ecdf.html</a>. Its usage is <code>[f,x] = ecdf(y)</code>, where the empirical cdf from data y<code>is evaluated at</code>x<code>, but</code>x` doesn't seem to be specifiable.</p>
  
  <p>Thanks and regards!</p>