www.gusucode.com > simbio 案例源码程序 matlab代码 > simbio/CreateaGroupedDataObjectfromDatasetExample.m
%% Create a GroupedData Object from Dataset % This example uses data collected on 59 preterm infants given % phenobarbital during the first 16 days after birth. Each infant received % an initial dose followed by one or more sustaining doses by intravenous % bolus administration. A total of between 1 and 6 concentration % measurements were obtained from each infant at times other than dose % times, for a total of 155 measurements. Infant weights and APGAR scores % (a measure of newborn health) were also recorded. Data is described in % <docid:simbio_ref.bua3l3_-2>, a study funded by the NIH/NIBIB grant % P41-EB01975. %% % Load the sample data set. load pheno.mat ds %% % Create a |groupedData| object from the data set |ds|. grpData = groupedData(ds); %% % Display the properties. grpData.Properties %% % |GroupVariableName| and |IndpendentVariableName| have been automatically % assigned to |'ID'| and |'Time'| respectively.