0001
0002
0003 function createBar(data, xLabel, yLabel, Title)
0004
0005 figure1 = figure;
0006
0007
0008 axes1 = axes(...
0009 'CameraUpVector',[0 1 0],...
0010 'FontName','Times New Roman',...
0011 'FontSize',13,...
0012 'FontWeight','demi',...
0013 'Parent',figure1);
0014 box('on');
0015 hold('all');
0016
0017
0018 bar1 = bar(data,...
0019 'BarLayout','stacked',...
0020 'LineWidth',1);
0021
0022
0023 xlabel(xLabel,...
0024 'FontName','Times New Roman',...
0025 'FontSize',13,...
0026 'FontWeight','bold');
0027
0028
0029 ylabel(yLabel,...
0030 'FontName','Times New Roman',...
0031 'FontSize',13,...
0032 'FontWeight','bold');
0033
0034 title(Title,...
0035 'FontName','Times New Roman',...
0036 'FontSize',14,...
0037 'FontWeight','bold');
0038