n_tables_1 = numel(data1);
all_data_1 = zeros([size(data1{1}),n_tables_1]);
all_data_1(:,:,ii) = table2array(data1{ii});
n_tables_2 = numel(data2);
all_data_2 = zeros([size(data2{1}),n_tables_2]);
all_data_2(:,:,ii) = table2array(data2{ii});
data1_var1 = all_data_1(:,1,:);
data2_var1 = all_data_2(:,1,:);
data1_var1 = reshape(data1_var1,[100,21]);
data2_var1 = reshape(data2_var1,[100,21]);
r1=corrcoef(data1_var1(:,1),data2_var1(:,1));
r2=corrcoef(data1_var1(:,2),data2_var1(:,2));
r3=corrcoef(data1_var1(:,3),data2_var1(:,3));
r4=corrcoef(data1_var1(:,4),data2_var1(:,4));
r5=corrcoef(data1_var1(:,5),data2_var1(:,5));
r21=corrcoef(data1_var1(:,21),data2_var1(:,21));