MATLAB: Figure axis: How to change ‘0 1 2 3’ into ‘0.0 1.0 2.0 3.0’ while keeping ‘ x 10^9’ on the top of y axis figure axis Check this figure: Best Answer Use the function ytickformat.x=-2:2;y=[0 0.75 1.5 2.25 3]*1e9;plot(x,y)ytickformat('%.1f') Related SolutionsMATLAB: Changing horizontal x axis from 0-1-0 %-----Example---------t=0:0.1:20y=sin(t);plot(t,y)%-------------------------xl=get(gca,'xlim')xti=[0.2:0.1:1 0.9:-0.1:0.2]set(gca,'xtick',linspace(xl(1),xl(2),numel(xti)))xti1=arrayfun(@num2str,xti,'un',0)set(gca,'xticklabel',xti1) MATLAB: Axis: no labels but grid on set(gca,'XTickLabel','','YTickLabel','','ZTickLabel',''); Related Question10%+10%Change the axis tickHow to let y-axis ticks increase by 2How to use two different scales on one same axis: logarithmic from 0.1 to 1 and linear from then on
Best Answer