def load_configuration_matlab(configuration_file_path):
    """
    Loads a matlab text dump of the configuration numerical values
    and stores them in a Python array.
    """
    config = []
    with open(configuration_file_path, 'r') as f:
        for line in f.readlines():
            if line.strip().lower() == 'nan':
                v = None
            else:
                v = float(line)
                if v.is_integer():
                    v = int(v)
            config.append(v)

    return config