
x1 = [0:.1:40];
y1 = 4.*cos(x1)./(x1+2);
plot(x1,y1)

ax1 = gca;
ax2=axes('Position',get(ax1,'Position'),'Color','none','XTick',[],'YAxisLocation','right','YTick',exp(get(ax1,'YTick')),'YLim',exp(get(ax1,'YLim')),'XLim',exp(get(ax1,'XLim')),'YScale','log');
ylabel(ax1,'Log Index')
ylabel(ax2,'Index')
axes(ax1)
set(gcf,'PaperUnits','centimeters')
set(gcf,'PaperSize', [15 12])
set(gcf,'PaperPosition',[0 0 15 12])
drawnow
pause(2)
saveas(gcf,'test.pdf')




