syscall preprocessing for matlab