You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: exp_sen_old.m
    path of file: ./repos/HRTF-Individualization/model/matlabcode/functions/exp
    
    the code of the file until where you have to start completion: function [d_p,d_sub] = exp_sen_old(hr,fa,subjects_ids)
% Compute Sensitivity d_pooled and d_subject

    
function [d_p,d_sub] = exp_sen_old(hr,fa,subjects_ids)
% Compute Sensitivity d_pooled and d_subject


% Pooled Data
hr_1 = permute(hr,[1,5,2,3,4]);
hr_1 = reshape(hr_1,[length(subjects_ids)*2,4,5,7]);

fa_1 = permute(fa,[1,5,2,3,4]);
fa_1 = reshape(fa_1,[length(subjects_ids)*2,4,5,7]);
fa_1 = squeeze(mean(mean(mean(fa_1,1),3),4));

fa_1_sub = permute(fa,[3,4,1,2,5]);
fa_1_sub = reshape(fa_1_sub,[5*7,length(subjects_ids),4,2]); % only depend