How can I update a class file without using "clear all"?

After modifying a class .m file, even if I clear the old arrays of objects corresponding to this class, the newly created objects will still follow the old class file. Currently, I have to use "clear all" to make a thorough update. But is there any specific approach to achieve this "class update" goal? Thanks!

댓글 수: 2

Matt J
Matt J 2012년 10월 25일
편집: Matt J 2012년 10월 25일
Pretty strange. I can't reproduce that behavior. I think clearing the old objects should be enough. Are you sure you don't have inadvertent copies of the class lying around? Try doing
>>which -all myclass
Matt J
Matt J 2012년 10월 25일
편집: Matt J 2012년 10월 25일
Also try doing "clear classes". Then see if clearing the old objects is sufficient from that point forward for updating purposes.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Class Introspection and Metadata에 대해 자세히 알아보기

질문:

2012년 10월 25일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by