title: ternary operator in matlab
body: <p>is there a way of typing for if like:</p>
  
  <pre><code>var = (cond) ? true : false;
  </code></pre>
  
  <p>or do we have to use this format?</p>
  
  <pre><code>if (cond)
   true
  else
   false
  end
  </code></pre>