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: setupUsers.m
    path of file: ./repos/monster/setup
    
    the code of the file until where you have to start completion: function Users = setupUsers (Config, Logger, Layout)
	% setupUsers - performs the necessary setup for the UEs in the simulation
	%	
	% :param Config: MonsterConfig simulation config class instance
	%	:param Logger: MonsterLog instance 
	% :param Layout: NetworkLayout instance
	% :returns Users: Array<UserEquipment> simulation UEs class instances

    
function Users = setupUsers (Config, Logger, Layout)
	% setupUsers - performs the necessary setup for the UEs in the simulation
	%	
	% :param Config: MonsterConfig simulation config class instance
	%	:param Logger: MonsterLog instance 
	% :param Layout: NetworkLayout instance
	% :returns Users: Array<UserEquipment> simulation UEs class instances

	Logger.log('(SETUP - setupUsers) setting up UEs', 'DBG');
	numUsers = Config.Ue.number;
	Users = arrayfun(@(x) UserEquipment(Config, x, Logger, Layout), 1:numUsers);
end