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: itd_elevations.m
    path of file: ./repos/HRTF-Individualization/model/matlabcode/functions/gui/plot
    
    the code of the file until where you have to start completion: function itd_2d = itd_elevations(hObject, eventdata, handles)

% Get 2D ITD Data (= all elevations) from given azimuth of one subject
% theoretical must be always the same

global DB
global ANGLES
global current_subject
global current_db
global azimuth_real

    
function itd_2d = itd_elevations(hObject, eventdata, handles)

% Get 2D ITD Data (= all elevations) from given azimuth of one subject
% theoretical must be always the same

global DB
global ANGLES
global current_subject
global current_db
global azimuth_real
global fs

itd_2d = [];

if (strcmp(current_db,'universal') == 1)
    
    [~,hrir_length,fs] = get_matrixvalue_universal(0,0,current_subject,ANGLES);
         
    indizes = find(ANGLES(:,1) == azimuth_real);
    elevation_values = zeros(length(indizes));
    
    for i=1:length(indizes)
        elevation_values(i) = ANGLES(indizes(i),2);
    end