[MATLAB] changes to Makefiles for Examples and test-suite

- use -output for mex as opposed to -o as R2014a doesn't support -o anymore
- for running, insert a semi-column after the "try" command to avoid a matlab warning