Undefined variable "RTW" error on Matlab start before prompt appears and in coder
3 次查看(过去 30 天)
显示 更早的评论
I have just installed Matlab R13a + Matlab coder + Financial/Statistics/Optimization/parallel toolboxes. On Matlab start I get message in the command window before the prompt appears:
Undefined variable "RTW" or class "RTW.TargetRegistry.getInstance".
Error in C:\Program Files\MATLAB\R2013a\toolbox\coder\foundation\build\+coder\+make\+internal\+guicallback\getToolchains.p>getToolchains (line 8)
Error in C:\Program Files\MATLAB\R2013a\toolbox\coder\coder\emlcprivate.p>emlcprivate (line 16)
The same error appears on attempt to use Matlab Coder
Please let me know what can I do to fix this
0 个评论
采纳的回答
Ryan Livingston
2013-8-8
It seems like the file getInstance.p is not in your installation. What is the output of:
ls(fullfile(matlabroot,'toolbox','coder','foundation','+RTW','@TargetRegistry'))
that is where getInstance.p should be located. If it is there you should run:
rehash toolboxcache
restoredefaultpath
to see if that allows it to be picked up.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!