title: Matlab Infinity testing
body: <p>How i can test a given value is <code>infinity</code>, <code>-infinity</code> or <code>NaN.</code> 
  <code>isinf</code> works only for 'double', and can't test <code>NaN</code> values.</p>