This tries to find matlab's path using a system which
command, and then, if not found, looks at getOption("matlab.path"). If not path is found, it fails.
Usage
get_matlab(try_defaults = TRUE)
Arguments
try_defaults
(logical) If matlab is not found from
Sys.which, and matlab.path not found, then try some
default PATHs for Linux and OS X.