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: generatePoissonEntryTimes.m
    path of file: ./repos/OpenTrafficLab/+drivingBehavior
    
    the code of the file until where you have to start completion: function entryTimes = generatePoissonEntryTimes(tMin,tMax,mu)
%generatePoissonEntryTimes generates a monotonically increassing vector of
%entry times of vehicles arriving with a rate mu (in vehicles per hour) between times tMin and tMax.
%The minHeadway guarantees that vehicles have a certain minimum time
%headway in seconds.

% Copyright 2020 - 2020 The MathWorks, Inc.


    
function entryTimes = generatePoissonEntryTimes(tMin,tMax,mu)
%generatePoissonEntryTimes generates a monotonically increassing vector of
%entry times of vehicles arriving with a rate mu (in vehicles per hour) between times tMin and tMax.
%The minHeadway guarantees that vehicles have a certain minimum time
%headway in seconds.

% Copyright 2020 - 2020 The MathWorks, Inc.

t=tMin;
minHeadway = 1;
entryTimes = [];
while t<tMax
    headway = (-log(rand)*3600/mu);
    headway = max(minHeadway,headway);
    t = t+headway;
    if t<tMax
        entryTimes(end