Undefined variable "RTW" error on Matlab start before prompt appears and in coder

조회 수: 1 (최근 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

채택된 답변

Ryan Livingston
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개)

카테고리

Help CenterFile 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!

Translated by