%% Create Array of Doses from groupedData
% 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.
%
% Create an array of dose objects using the dosing information from the groupedData specified by the DOSE variable. Each row (dose object) represents a dosing schedule for each individual (group).

doseArray = createDoses(grpData,'DOSE');

% Copyright 2012 The MathWorks, Inc.