Getting Started Previous page   Next Page

Multivariate Data

MATLAB uses column-oriented analysis for multivariate statistical data. Each column in a data set represents a variable and each row an observation. The (i,j)th element is the ith observation of the jth variable.

As an example, consider a data set with three variables:

For five observations, the resulting array might look like

The first row contains the heart rate, weight, and exercise hours for patient 1, the second row contains the data for patient 2, and so on. Now you can apply many MATLAB data analysis functions to this data set. For example, to obtain the mean and standard deviation of each column, use

For a list of the data analysis functions available in MATLAB, type

If you have access to the Statistics Toolbox, type


Previous page  Arrays Scalar Expansion Next page

© 1994-2005 The MathWorks, Inc.