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: getCompatibleMeasures.m
    path of file: ./repos/BRAPH-2/braph2genesis/src/gt
    
    the code of the file until where you have to start completion: function list = getCompatibleMeasures(g)
%GETCOMPATIBLEMEASURELIST returns the list of measures.
%
% CELL ARRAY = GETCOMPATIBLEMEASURES(G) returns a cell array of
%  measures compatible with the concrete graph G.
%
% CELL ARRAY = GETCOMPATIBLEMEASURES(GRAPH_CLASS) returns a cell array
%  of compatible measures to a graph whose class is GRAPH_CLASS.
%
% See also Graph, Measure.

graph_class = Element.getClass(g);

measure_code_list = Measure.getSubclasses();

list = cell(1, length(measure_code_list));
for i = 1:1:length(measure_code_list)

    
function list = getCompatibleMeasures(g)
%GETCOMPATIBLEMEASURELIST returns the list of measures.
%
% CELL ARRAY = GETCOMPATIBLEMEASURES(G) returns a cell array of
%  measures compatible with the concrete graph G.
%
% CELL ARRAY = GETCOMPATIBLEMEASURES(GRAPH_CLASS) returns a cell array
%  of compatible measures to a graph whose class is GRAPH_CLASS.
%
% See also Graph, Measure.

graph_class = Element.getClass(g);

measure_code_list = Measure.getSubclasses();

list = cell(1, length(measure_code_list));
for i = 1:1:length(measure_code_list)
    measure_code = measure_code_list{i};
    compatible_graph_list = Element.getPropDefault(measure_code, 'COMPATIBLE_GRAPHS');

    if any(strcmp(compatible_graph_list, graph_class))
        list{i} = measure_code;
    end