edited matlab script to be able to serve as an interpreter