1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| clear all, clear clf
x=1:22; y=10.^(-x./2); z=10.^(-x./2-2); w=10.^(-x./2-4);
semilogy(x,y,'color',[0 0 1],'Marker','o','MarkerFaceColor','w','LineWidth',1) hold on semilogy(x,z,'color',[0 0.5 0],'Marker','s','MarkerFaceColor','w','LineWidth',1) hold on semilogy(x,w,'color',[1 0 0],'Marker','d','MarkerFaceColor','w','LineWidth',1) grid on xlabel('N','fontsize',16), ylabel('Error','fontsize',16) legend('label1','label2','label3')
xticks(0:2:24) yticks(10.^[-16:2:0]) xlim([0 24]) ylim([10^(-16) 1])
set(gca,'FontName','Times New Roman','FontSize',12)
|