October 23, 2018 at 1:25 pm
#1532
Moderator
Are you running win 7 by any chance?
There seems to be some discussion on this at
https://www.mathworks.com/matlabcentral/answers/98050-why-do-i-get-an-error-saying-undefined-function-or-variable-matlabrc-when-executing-a-program-th
Please try deleting the folder mentioned there:
(C:\Users\[username]\AppData\Local\Temp\[username]\mcrCache[version])