clear statxt;
clear Res;

 srad = vertcat( srad_P220_pad1, srad_P220_pad2, srad_P220_pad3, srad_P220_pad4, srad_P220_pad5);
 srad_amostras = vertcat( srad_P220_min, srad_P220_Ok, srad_P220_max );

% statxt_amostras = vertcat( statxt_P220_min, statxt_P220_Ok, statxt_P220_max );
% statxt = vertcat( statxt_P220_pad1, statxt_P220_pad2, statxt_P220_pad3,statxt_P220_pad4);

% dPm = mahal( statxt_amostras, statxt );
dPm = mahal( srad_amostras, srad );

dPm = dPm/max(max(dPm));

dP500_MINm = dPm(1:1:50,:);
dP500_OKm = dPm(51:1:100,:);
dP500_MAXm = dPm(101:1:150,:);

% dP500_OKm = dPm(1:1:50,:);
% dP500_MAXm = dPm(51:1:100,:);

Res =[ dP500_MINm dP500_OKm dP500_MAXm]
