You can prevent instances of a handle class from being copied by implementing the matlab.mixin.Copyable class and its copy method in your handle class as follows:
main.m273 chars10 linesThis will throw an error if any attempt to copy the object is made.
gistlibby LogSnag