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
CustomCompactDisplayProviderinterface provides utility methods that you can call from withincompactRepresentationForColumnto 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
fullDataRepresentationmethod.To build a representation of an object array that shows a portion of its data, use the
partialDataRepresentationmethod.To build a representation of an object array that shows as much of its data as possible based on the available width, use the
widthConstrainedDataRepresentationmethod.
Version History
Introduced in R2021b