Matlab - how to set the XScale with log or lan scale? -
i want set axis of plot in log scale.
when i'm running next code:
x = (1:100)'; y1 = x; y2 = x.^2; [ax,h1,h2] = plotyy(x,y1,x,y2); set(ax,'xscale','log');
i'm getting:
the x axis has: 10^0, 10^1, 10^2
but want see log1, log 10, log 100 and... if want set ln (log e) possible ?thanks
do mean:
x = (1:100)'; y1 = x; y2 = x.^2; [ax,h1,h2] = plotyy(x,y1,x,y2); set(ax,'xscale','log'); set(ax,'xticklabel', { 'log1' 'log 10', 'log 100' } )
matlab
No comments:
Post a Comment