how to change Mac read-only file permission:
Restart in Recovery mode (Command-R at startup), open Terminal (from the Utilities menu), and disable SIP filesystem protection with:
csrutil enable --without fs
Restart normally, open Terminal, and remount the root volume for read access:
sudo mount -uw /
unable to install toolbox matlab
sudo chown -R $LOGNAME: /usr/local/MATLAB/R2017b