compactRepresentationForColumn
Class: matlab.mixin.CustomCompactDisplayProvider
Namespace: matlab.mixin
Description
returns the columnar compact display representation of the object array
rep
= compactRepresentationForColumn(obj
,displayConfiguration
,width
)obj
. To provide a suitable representation, the method uses the
current display context displayConfiguration
and the available
character width provided by the container that must display obj
.
compactRepresentationForColumn
is called by containers that support a
columnar display layout; for example, when your object is displayed within a MATLAB® table. The default implementation of the method uses the array dimensions and
class name to represent obj
.
Input Arguments
Output Arguments
Examples
Tips
The
CustomCompactDisplayProvider
interface provides utility methods that you can call from withincompactRepresentationForColumn
to conveniently customize the columnar compact display representation of your objects:To build a representation of an object array that shows all its data, use the
fullDataRepresentation
method.To build a representation of an object array that shows a portion of its data, use the
partialDataRepresentation
method.To build a representation of an object array that shows as much of its data as possible based on the available width, use the
widthConstrainedDataRepresentation
method.
Version History
Introduced in R2021b