Fix to run on Matlab

Signed-off-by: Ruben Merz <ruben.merz@ieee.org>