
function model_out = register_vector(model, vector_est, lang, vectors_i)


    if nargin<4
        vectors_i = 0;
    end



    if strcmp(lang, 'est')
        registered_vectors = model.registered_vectors_est;
    else
        registered_vectors = model.registered_vectors_eng;
    end

    
    vector_key = vector_to_string(vector_est);    
    
    
    % res = registered_vectors.containsKey(vector_key);
    

    registered_vectors.put(vector_key, vectors_i);
    
    
    
    if strcmp(lang, 'est')
        model.registered_vectors = registered_vectors;
    else
        model.registered_vectors = registered_vectors;
    end    

    
    model_out = model;
    
    
end
