x=logspace(-2,0,500);y=((sin(1./x)).^2)./x;plot(x,y);set(gca,'xscale','log','Yscale','linear'); %设置横坐标是log,纵坐标是默认线性title('Y-logX');set(gca,'xgrid','on','LineWidth',1,'Ygrid','off') %#设置x坐标轴分格线,及其粗细,y坐标轴的关闭
gca----用来返回当前axes (坐标图)对象的句柄
在command 里面输入gca
Axes (Y-logX) (具有属性):
XLim: [0.0100 1]
YLim: [0 100] XScale: 'log' YScale: 'linear' GridLineStyle: '-' Position: [0.1300 0.1100 0.7750 0.8150] Units: 'normalized'