This issue can be caused by an additional "Contents.m" file inside of a folder named "MATLAB" somewhere on your computer. This folder is likely the userpath folder since this is named "MATLAB" by default. To work around this issue remove the "Contents.m" file from the "MATLAB" folder.
First, determine if there is a file causing this issue by entering the following in the MATLAB Command Window:
If a 1x2 structure is returned then there is an additional "Contents.m" file causing this issue.
To locate the file, enter the following in the MATLAB command window (run both as the file search is case sensitive):
which -all Contents.m
which -all contents.m
This will list all Contents.m files on your system. You should see one Contents.m file for each toolbox you have installed, and if the earlier command returned at 1x2 structure then you will have additional Contents.m files on your system, outside of the MATLAB installation directory (As a note, this means if there is any Contents.m files outside of the MathWorks installation folders, then they need to be renamed). For example, there exists a plug-in to link MATLAB and Adobe Photoshop, so on a Mac with this plug-in installed you might see this:
/Applications/Adobe Photoshop CS6/Matlab/Contents.m
To resolve the issue, rename the file "Contents.old." Once the you are done using the support package installer, you can change the name of the file back to Contents.m if necessary.
Best Answer