Older articles

  1. A patched mlabwrap

    mlabwrap is a Python library that allows you to run MATLAB code from Python.

    I get the following error when trying to install the last version (v1.1) in my machine (Lubuntu 12.04, Python 2.7)

    mlabraw.cpp:225: *error*: invalid conversion from ‘const mwSize*’ to ‘const int*’

    I ...

    read more
  2. Using NumPy masked arrays

    In NumPy, masked arrays are quite handy. Say you want to find the index of the smallest positive entry of an array. Doing a[a>0].argmin() doesn't work, because you're removing all the non-positive numbers from a, so you're computing argmin over the wrong array.

    Masked ...

    read more
  3. Page 1 / 1


atom feed twittergithubgplus