1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
function [t,seat,aisle]=OI6Sim(n,target,seated) pab=rand(1,n); for i=1:n if pab(i)<0.4 aisleTime(i)=0; else aisleTime(i)=trirnd(3.2,7.1,38.7); end end