Matlab Code for OASIS:

oasis.m - the main function
oasis_m.m - wrapper
oasis_c.mexa64 - compiled on linux
oasis_c.c - C code
take_from_struct.m - util

see The OASIS page for mor details.