論文中須要畫圖進行比較,感受仍是matlab畫起來比較方便,先把本身畫的圖及matlab代碼放上。算法
y=[300 311;390 425; 312 321; 250 185; 550 535; 420 432; 410 520;];
b=bar(y);
grid on;
ch = get(b,'children');
set(gca,'XTickLabel',{'0','1','2','3','4','5','6'})
set(ch,'FaceVertexCData',[1 0 1;0 0 0;])
legend('基於XXX的算法','基於YYY的算法');
xlabel('x axis ');
ylabel('y axis');get