MATLAB Code for Osiris