Hey Fred,
Have a look at these other MATLAB Answers posted on the community:
- MATLAB Answer by Staff
- MATLAB Answer on Installation problem
There seem to be a few other workarounds to solving this issue apart from the three commands that you've mentioned.
Also, please try to perform a complete reinstallation of MATLAB in case the issue persists.
Hope this helps!