function f = add_from_list(list_to, list_from, index_list)

list_size = size(list_from);

%all_index = 1:list_size(1);

all_index=zeros(1,list_size(1));
%for m = 1:list_size(1)
%    all_index=[all_index,true];
%end

for m = 1:length(index_list)
   all_index(index_list(m))=1;
end

f=[list_to;list_from(logical(all_index),:)];
end