matlab execute script as a function