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: insert.m
    path of file: ./repos/calfem-matlab/fem
    
    the code of the file until where you have to start completion:  function [f]=insert(edof,f,fe)
% [f]=insert(edof,f,fe)
%-------------------------------------------------------------
% PURPOSE
    
function [f]=insert(edof,f,fe)
% [f]=insert(edof,f,fe)
%-------------------------------------------------------------
% PURPOSE
%  Assembel fe into the global force vector f 
%  according to the topology matrix edof.
%
% INPUT: edof:  topology matrix
%        f   :  the global force vector
%        fe  :  element force vector
%
% OUTPUT:  f :  the new global force vector
%-------------------------------------------------------------

% LAST MODIFIED: M Ristinmaa 1993-10-30
% Copyright (c)  Division of Structural Mechanics and
%                Division of Solid Mechanics.
%                Lund University
%-------------------------------------------------------------
    [nie,n]=size(edof);
    t=edof(:,2:n);
    for i = 1:nie
         f(t(i,:))=f(t(i,:))+fe(i,:)';
    end