Update Class without restarting matlab
이전 댓글 표시
Hello Matlabers
I am working on a GUI and have implemented some of my own classes (all stored in @classname folder with subfunctions in there too - as told on the mathworks website).
When I need to do some changes to methods/functions in my classes, they somehow do not get updated after saving. When I restart my gui (where tha objects are created) I still get the old implementations.
I always close all the windows/guis and do "close all" but this does not seem to work - even "pack" has no influence.
Thus I found that in order to have an updated class I need to restart my Matlab and then things work perfectly.
There has to be a more convenient way, hasn't it?
채택된 답변
추가 답변 (1개)
Walter Roberson
2011년 4월 6일
0 개 추천
Have you tried using "clear" of the class? Have you tried using "rehash", perhaps even "rehash toolboxcache" ?
댓글 수: 1
Peter Manley-Cooke
2011년 4월 6일
As in the command "clear classes". You will then need to re-instantiate you classes. I do it by restarting the GUI.
카테고리
도움말 센터 및 File Exchange에서 Class Introspection and Metadata에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!