Hello, I wrote following lines for plotting a bar graph of shock1-shock5 excel files.
%filename='shock1-5.xlsx'
clear allclctraining=5;sheetname='Result';for i=1:training disp(i) freezePercent=xlsread(strcat('shock',num2str(i)),'C2:C11'); for j=1:length(freezePercent) bar(freezePercent,'grouped') hold on endend
However my code returns me stacked bar graph which looks like this.
I want mine to look like this:
Best Answer