compactRepresentationForSingleLine
Class: matlab.mixin.CustomCompactDisplayProvider
Namespace: matlab.mixin
Description
        rep = compactRepresentationForSingleLine(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.
compactRepresentationForSingleLine is called by containers that support
        a single-line display layout; for example, when your object is displayed within a structure
        or cell array, or as a property of another object. 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 within- compactRepresentationForSingleLineto conveniently customize the single-line 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