MATLAB: Log log plot log 2 scale I have a set of data wich I want to plot in a log scale, not with the base 10, but with the base 2. How can I do that? Best Answer Try this code:plot(log2(rand(100,1)*128))ytick = get(gca, 'YTick')str = cellstr( num2str(ytick(:),'2^{%d}') )format_ticks(gca,' ',str)format_ticks function you can download from:http://www.mathworks.com/matlabcentral/fileexchange/15986 Related SolutionsMATLAB: How to draw plotmatrix in logscale AX = findobj('type','axes');set(AX,'yscale','log','xscale','log') MATLAB: Scatter3 in log-log-log After calling scatter3 use this line of code: set(gca,'Xscale','log','Zscale','log','Yscale','log') Related QuestionLog scale x axisDetect of a plot is loglogPlot in log-logChange the scale on graphLog-log plot explained
Best Answer