mdim_examp
data(1).values = weights(:,:,1);
data(1).time = 'Before drug';

data(2).values = weights(:,:,2);
data(2).time = 'One week after';

data(7).values = weights(:,:,7);
data(7).time = 'Six weeks after';

% Accessing all data from the field 'values'.
[vals{1:7}] = deal(data.values)
% vals = cat(1,data.values)

% Accessing the first weight from the first set.
first = data(1).values(1,1)