displayScalarHandleToDeletedObject

Class: matlab.mixin.CustomDisplay
Package: matlab.mixin

Display format for deleted scalar handles

Syntax

displayScalarHandleToDeletedObject(obj)

Description

displayScalarHandleToDeletedObject(obj) is called by the disp method when obj is:

  • An instance of a handle class

  • Scalar

  • A handle to a deleted object

That is, the following expression is true.

isa(obj,'handle') && isscalar(obj) && ~isvalid(obj) 

Override this method to customize the appearance of your object's display when it is deleted.

Input Arguments

obj

Object of a class derived from matlab.mixin.CustomDisplay

Attributes

Accessprotected

To learn about attributes of methods, see Method Attributes in the MATLAB® Object-Oriented Programming documentation.

Was this topic helpful?