Getting Started |
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 i
th observation of the j
th 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
Arrays | Scalar Expansion |
© 1994-2005 The MathWorks, Inc.