Main Content

display

(Not Recommended) Display dataset array

The dataset data type is not recommended. To work with heterogeneous data, use the MATLAB® table data type instead. See MATLAB table documentation for more information.

Syntax

display(ds)

Description

display(ds) prints the dataset array ds, including variable names and observation names (if present). dataset callsdisplay when a you do not use a semicolon to terminate a statement

For numeric or categorical variables that are 2-D and have three or fewer columns, display prints the actual data. Otherwise, display prints the size and type of each dataset element.

For character variables that are 2-D and 10 or fewer characters wide, display prints quoted text. Otherwise, display prints the size and type of each dataset element.

For cell variables that are 2-D and have three or fewer columns, display prints the contents of each cell (or its size and type if too large). Otherwise, display prints the size of each dataset element.

For time series variables, display prints columns for both the time and the data. If the variable is 2-D and has three or fewer columns, display prints the actual data. Otherwise, display prints the size and type of each dataset element.

For other types of variables, display prints the size and type of each dataset element.

See Also

|