x = [4e7, 5e11, 9e17];y = [5e8, 4e11, 8e17];z = [3e8, 6e11, 7e17];average = (x+y+z)/3;markersize = 99;C = average;color = C(:); %Vary color by value of average
scatter3(x,y,z,markersize,color,'Filled')colorbarset(gca,'ColorScale','log') %%%%%%This is where the problem lies
caxis([min(x),max(x)]); %set value range of colorbar
I've learned the set(gca,'ColorScale','log') will not work in 2016a; error: There is no ColorScale property on the Axes class. Is there any simple way of dictating the colorbar to be logarithmic? Any help is appreciated.
Best Answer