Converting matlab code to python

less than 1 minute read

Look at this SO question to convert matlab code into python/scipy/numpy: