gusucode.com > 《精通matlab 7》包括配套光盘 > 配套光盘里的程序附件/Ex-23/Ex2311.m

    %例23-11 对数/半对数坐标系作图
x=0:0.1:10;
y=exp(-x);
subplot(2,2,1)
plot(x,y,'r')
title('plot')
subplot(2,2,2)
semilogx(x,y,'--k')
title('semilogx')
subplot(2,2,3)
semilogy(x,y,'-.g','LineWidth',1.5)
title('semilogy')
subplot(2,2,4)
loglog(x,y,':b','LineWidth',0.5')
title('loglog')