title: What is numpy.fft.rfft and numpy.fft.irfft and its equivalent code in MATLAB
body: <p>I am converting a python code into MATLAB and one of the code uses numpy rfft. In the documentation of numpy, it says real input.</p>
  
  <blockquote>
    <p>Compute the one-dimensional discrete Fourier Transform for real input.</p>
  </blockquote>
  
  <p>So what I did in MATLAB is using abs but the results are different.</p>
  
  <p>Python code</p>
  
  <pre><code>ffta = np.fft.rfft(a) 
  </code></pre>
  
  <p>MATLAB code</p>
  
  <pre><code>ffta = abs(fft(a));
  </code></pre>
  
  <p>What have I misunderstood? </p>