If you installed MATLAB R2017a in the usual place on the Mac, then you can add this to your ~/.bash_profile
alias matlab='/Applications/MATLAB_R2017a.app/bin/matlab -nojvm -nodesktop'
if you want to be able to run from the command line without the desktop GUI.