function plot_hws_2(d_1,d_2) hFig = figure; fig_left = 300; fig_bottom = 300; fig_height = 300; fig_width = 400; set(hFig, 'Position', ... [fig_left fig_bottom fig_width fig_height]) edges = 3:0.1:8; hold on box on histogram(d_1.r.hws_nw,edges) histogram(d_2.r.hws_nw,edges) xlabel('headway (minute)') ylabel('frequency') legend('no control','I-controller','Location','NorthWest') end