function createfigure(ymatrix1)
%CREATEFIGURE(YMATRIX1)
%  YMATRIX1:  bar matrix data

%  Auto-generated by MATLAB on 22-Dec-2009 13:38:58

% Create figure
figure1 = figure;

% Create axes
axes1 = axes('Parent',figure1,'YMinorTick','on',...
    'XTickLabel',{'FOUND','AUTH','ASSOC','LOST'},...
    'XTick',[1 2 3 4],...
    'FontSize',12);
box(axes1,'on');
hold(axes1,'all');

% Create multiple lines using matrix input to bar
bar1 = bar(ymatrix1,'Parent',axes1);
set(bar1(1),'DisplayName','75mph');
set(bar1(2),'DisplayName','70mph');
set(bar1(3),'DisplayName','65mph');
set(bar1(4),'DisplayName','60mph');
set(bar1(5),'DisplayName','55mph');
set(bar1(6),'DisplayName','50mph');
set(bar1(7),'DisplayName','45mph');
set(bar1(8),'DisplayName','40mph');
set(bar1(9),'DisplayName','35mph');
set(bar1(10),'DisplayName','30mph');
set(bar1(11),'DisplayName','15mph');

% Create xlabel
xlabel('Road Side Unit Relationship','FontSize',14,'FontName','Arial');

% Create ylabel
ylabel('Time in Seconds','FontSize',14,'FontName','Arial');

% Create legend
legend1 = legend(axes1,'show');
set(legend1,'Position',[0.1306 0.3743 0.2023 0.4619]);

