title: Real root in MATLAB
body: <p>MATLAB code:</p>
  
  <pre><code>x^(1/3)
  </code></pre>
  
  <p>If <code>x = -1</code> then the result is <code>0.5000 + 0.8660i</code>, but I only want the real root <code>-1</code>.</p>
  
  <p>How do I modify the above expression?</p>
  
  <p>PS: I don't want such a solution:</p>
  
  <pre><code>sign(x)*(abs(x))^(1/3)
  </code></pre>