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: BulkSet.m
    path of file: ./repos/NASTRAN_CoFE/nastran_cofe/nastran_input_processors
    
    the code of the file until where you have to start completion: % Helper superclass for Bulk Data xSET entries (e.g, ASET, BSET, etc.)
% Anthony Ricciardi
%
classdef (Abstract) BulkSet
    
    properties
        id1 % [uint32] Grid or scalar point identification number.
        c1 % [:,1 uint32] Component numbers. Zero OR a sequential combination of integers 1 thru 6.
        id2 % [uint32]
        c2 % [:,1 uint32] 
        id3 % [uint32]
        c3 % [:,1 uint32]
        id4 % [uint32]
    
    
function model = entry2model_sub(obj,model)
            % Convert entry object to model object and store in model entity array
            if ~isempty(obj.id4)
                newDofset = [...
                    DofSet(obj.DOFSET_NAME,obj.c1,obj.id1);
                    DofSet(obj.DOFSET_NAME,obj.c2,obj.id2);
                    DofSet(obj.DOFSET_NAME,obj.c3,obj.id3);
                    DofSet(obj.DOFSET_NAME,obj.c4,obj.id4)];
            elseif ~isempty(obj.id3)
                newDofset = [...
                    DofSet(obj.DOFSET_NAME,obj.c1,obj.id1);
                    DofSet(obj.DOFSET_NAME,obj.c2,obj.id2);
                    DofSet(obj.DOFSET_NAME,obj.c3,obj.id3)];
            elseif ~isempty(obj.id2)
                newDofset = [...
                    DofSet(obj.DOFSET_NAME,obj.c1,obj.id1);
                    DofSet(obj.DOFSET_NAME,obj.c2,obj.id2)];
            else
                newDofset = DofSet(obj.DOFSET_NAME,obj.c1,obj.id1);
            end