matlab.display.PlainTextRepresentation Class
Namespace: matlab.display
Superclasses: matlab.display.CompactDisplayRepresentation
Description
The matlab.display.PlainTextRepresentation class provides a compact display
representation of an object array using plain text to show all or a portion of the data in the
array.
Creation
Description
rep = matlab.display.PlainTextRepresentation(
uses the current compact display configuration to construct a
obj,dataRepresentation,displayConfiguration)PlainTextRepresentation object with its Representation property set to
dataRepresentation.
rep = matlab.display.PlainTextRepresentation(
also sets the obj,dataRepresentation,displayConfiguration,Annotation=annotation)Annotation property to annotation.
Input Arguments
Properties
Examples
Tips
Typically, you are not required to instantiate the
PlainTextRepresentationclass directly. TheCustomCompactDisplayProviderinterface provides utility methods that return aPlainTextRepresentationobject tailored to your specific compact display requirements:To construct a
PlainTextRepresentationobject from all data in an object array, use thefullDataRepresentationmethod.To construct a
PlainTextRepresentationobject from a portion of data in an object array, use thepartialDataRepresentationmethod.To construct a
PlainTextRepresentationobject from as much of an object array's data as possible based on the available width, use thewidthConstrainedDataRepresentationmethod.
Version History
Introduced in R2021b