%% Create groupedData from Existing Data Set
% Load the sample data set.

load pheno.mat ds

%
% Create a groupedData object from the data set ds.

grpData = groupedData(ds);

%
% Display the object properties.

grpData.Properties

% GroupVariableName and IndpendentVariableName have been automatically assigned to 'ID' and 'Time', respectively.
% Copyright 2012 The MathWorks, Inc.