Store Statistical Data

    Note:   Use only in the MuPAD Notebook Interface. This functionality does not run in MATLAB.

MuPAD® offers various data containers, such as lists, arrays, tables, and so on, to store and organize data. For details about the MuPAD data structures, see Data Structures. Although, you can use any of these data containers to store statistical data, the following containers serve best. The reason is that many functions of the Statistics library accept these data containers as input parameters:

  • Lists

  • Statistical samples (stats::sample). This data structure is specifically designed for statistical data.

Using sets, tables, arrays, vectors, and matrices is less convenient. You cannot use these data containers as input parameters for most functions of the Statistics library. To use these functions on data stored in sets, tables, arrays, vectors, or matrices, transfer the data to lists or statistical samples.

Was this topic helpful?