[MATLAB] Added support for multiple function outputs