Summary of Categorical Arrays

We can get the summary of categorical array by simply passing it to the summary command. Here, we get two scenarios. First, when the array is a 1D vector and second when it is a 2D array. We shall see the same with the help of examples.

Print summary of table, timetable, or categorical array in MATLAB

MATLAB provides various ways to store and organize data such as tables, categorical arrays, arrays, timetables, vectors, etc. MATLAB deals with big data used for machine learning and other mathematical functions which require different organization of data. For small data it is efficient to take a look at the entire data and summarize it but, the same cannot be done when you are working with big data or binary data(.mat files).

For such situations, MATLAB provides the summary function which returns a brief summary of the data structure passed to it. It must be noted here that the summary function works only on three type of MATLAB objects:

  1. Table
  2. Timetable
  3. Categorical Array/Vector

In this article, we shall see how to use the summary function on the above-mentioned MATLAB objects.

Similar Reads

Print summary of a table, timetable, or categorical array in MATLAB

The syntax of finding summary in MATLAB for any data that can be represented in a tabular form or categorical array or a datetime frame is given by:...

Summary of a Table

Summary function does not take any optional argument for tables or timetables therefore, we always get the summary of entire tables. Let us see the same with the help of examples....

Summary of Time Tables

...

Summary of Categorical Arrays

...

1D Categorical Arrays

Summary function works in the same manner on time tables, as it works on ordinary tables. We pass the timetable object as an input and receive the summary....

Conclusion

...