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

4 visualizaciones (últimos 30 días)
ColdKing
ColdKing el 25 de Oct. de 2012
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 comentarios
Matt J
Matt J el 25 de Oct. de 2012
Editada: Matt J el 25 de Oct. de 2012
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 el 25 de Oct. de 2012
Editada: Matt J el 25 de Oct. de 2012
Also try doing "clear classes". Then see if clearing the old objects is sufficient from that point forward for updating purposes.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Entering Commands en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by