MATLAB画图笔记

MATLAB画图笔记

plot(X, sort(OURS(:, 2)), 'ro-', 'MarkerSize', 8, 'LineWidth',1.2); hold on;
plot(X, sort(LPM(:, 2)), 'mv-', 'MarkerSize', 8, 'LineWidth', 1.2); hold on;
xlabel('X Label');  ylabel('Y Label');
axis([0, 1.02, 0, 1.02]);
set(gca,'xtick',0:0.2:1);   set(gca,'ytick',0:0.2:1)
set(gca,'FontSize',15,'fontweight','bold');
legend(['Ours',num2str(100*mean(OURS(:, 2)),'%.2f'), '%'], ['LPM', num2str(100*mean(LPM(:, 2)),'%.2f'), '%'])
legend boxoff

你可能感兴趣的:(matlab)