There are several possible solutions for resolving these error messages:
1) Restore MATLAB search path:
Execute the following commands and check if the issue is resolved:
>> restoredefaultpath
>> rehash toolboxcache
>> sl_refresh_customizations
If resolved, save the new path with:
2) Check for shadowing of the "web" and "helpview" functions:
>> which -all web
>> which -all helpview
If more file locations are outputted than expected, you can change the name of the user-defined function or remove it from the path.
3) Regenerating preferences:
Visit the link below for instructions to regenerate your MATLAB preferences:
4) Debugging 'web.m':
a) In the MATLAB command window, execute the following line:
b) Next, in the 'web.m' file, place a break point on the line of code which says, "e.throwAsCaller;". This should be on line 213.
c) Reproduce the error
d) Execution will stop at the break point. When this occurs, execute the following line:
>> disp(getReport(e,'extended'))
In one case, this command outputted "Error using strip", which pointed to the underlying cause of the issue. The "strip" command was being shadowed by a user-defined function.
Best Answer