mdim_examp
% Braces on RHS to create cell array
w_data= {'Before drug',weights(:,:,1);
         'One week after',weights(:,:,2);
         'Six weeks after',weights(:,:,7)}

% Braces on LHS to access data from the cell array
str = w_data{1}
before = w_data{1,2}

% Braces, then parentheses, to index cell contents

group1_before = w_data{1,2}(:,1)
group1_oneweek = w_data{2,2}(:,1)