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: RHSIntegratorUnfitted.m
    path of file: ./repos/Swan/Topology Optimization/Operators/Integrator
    
    the code of the file until where you have to start completion: classdef RHSIntegratorUnfitted < handle

    properties (Access = private)
        quadType
        unfittedMesh
    end

    properti
    
function f = assembleIntegrand(test,rhsElem)
            integrand = rhsElem;
            connec    = test.computeDofConnectivity()';
            ndofs     = max(max(connec));
            nDofElem  = size(connec,2);
            f         = zeros(ndofs,1);
            for iDof = 1:nDofElem
                int = integrand(:,iDof);
                con = connec(:,iDof);
                f   = f + accumarray(con,int,[ndofs,1],@sum,0);
            end