partialDataRepresentation
Class: matlab.mixin.CustomCompactDisplayProvider
Namespace: matlab.mixin
Build compact display representation from portion of data in object array
Since R2021b
Syntax
Description
builds the compact display representation of the object array rep = partialDataRepresentation(obj,displayConfiguration,str)obj using
the string array str. To construct a representation suitable for
display within the container, the method uses the current display context as described in
displayConfiguration. The method concatenates the elements of
str, followed by the ellipsis symbol specified by
displayConfiguration, into a padded display text.
Use this syntax to create a plain-text representation of your object array using its leading elements, leaving out elements from the end of the array.
builds a compact display representation of rep = partialDataRepresentation(obj,displayConfiguration,str1,str2)obj using the string arrays
str1 and
str2. The method concatenates the two string
arrays by placing the ellipsis symbol between them.
Use this syntax to create a plain-text representation of your object array using its leading and trailing elements, leaving out the elements in between.
also includes the specified annotation in the representation of rep = partialDataRepresentation(___,Annotation=annotation)obj.
You can use any of the input argument combinations in the previous syntaxes.
Input Arguments
Output Arguments
Examples
Tips
partialDataRepresentationis a utility method. You can call it from within thecompactRepresentationForSingleLineorcompactRepresentationForColumnmethods to customize the compact display of your objects.
Version History
Introduced in R2021b