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
PlainTextRepresentation
class directly. TheCustomCompactDisplayProvider
interface provides utility methods that return aPlainTextRepresentation
object tailored to your specific compact display requirements:To construct a
PlainTextRepresentation
object from all data in an object array, use thefullDataRepresentation
method.To construct a
PlainTextRepresentation
object from a portion of data in an object array, use thepartialDataRepresentation
method.To construct a
PlainTextRepresentation
object from as much of an object array's data as possible based on the available width, use thewidthConstrainedDataRepresentation
method.
Version History
Introduced in R2021b