필터 지우기
필터 지우기

How to force Matlab to reload classes in toolbox\rtw\rtw\@RTW

조회 수: 2 (최근 30일)
Christian
Christian 2014년 7월 3일
편집: Christian 2014년 7월 5일
Hello,
I have some software that uses the class RTW.TargetPrefs. This class was available up to R2012a. There is a patch available to add this class to newer releases (<http://www.mathworks.com/support/bugreports/877463)>. Basically, this patch copies some files to toolbox\rtw\rtw\@RTW\@TargetPrefs.
Unfortunately, Matlab needs a restart to find this new class. I tried rehash with different parameters to force Matlab to check for new classes, but without any success. I want to install the patch in a kind of install script and want to avoid that a user has to restart Matlab in order to get the classes. Therefore, I am looking for a way to force Matlab to check for new classes. Is there anything I can use?
Thank you,
Christian
  댓글 수: 1
Christian
Christian 2014년 7월 4일
편집: Christian 2014년 7월 5일
I realized that this problem only occurs in Matlab 2014a. In Matlab 2013b and older, the new class is immediately found after a rehash, without restarting Matlab. Was the rehash command changed in Matlab 2014?
Regards, Christian

댓글을 달려면 로그인하십시오.

답변 (1개)

John D'Errico
John D'Errico 2014년 7월 4일
clear classes
is what I always do, and it has always worked for me.
  댓글 수: 1
Christian
Christian 2014년 7월 5일
I tried this, but in R2014a, the new class is not known afterwards. A restart of Matlab is needed.

댓글을 달려면 로그인하십시오.

카테고리

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