title: inf or Inf? nan or NaN?
body: <p>It seems like both <code>inf</code> and <code>Inf</code> are exactly same in MATLAB (likewise <code>nan</code> and <code>NaN</code>, but not <code>Nan</code>). Is there any difference?</p>
  
  <pre><code>&gt;&gt; which inf
  built-in (/Applications/MATLAB_R2011b.app/toolbox/matlab/elmat/inf)
  &gt;&gt; which Inf
  built-in (/Applications/MATLAB_R2011b.app/toolbox/matlab/elmat/Inf)
  </code></pre>
  
  <p>If they are the same, which one should be used in practice? For allocating arrays I have been using <code>x = inf(3,5)</code> style following <code>zeros</code> and <code>ones</code> being all small caps. For assigning single value, I use <code>x = Inf</code>. Do you think this is a consistent use?</p>