MATLAB: Set Square root axis scale

axisgcaMATLABplotscalescattersetsqrtsquare root

How can I set the y axis scale to the square root as this graph here? I tried set(gca, 'yscale', 'lsqrt') but it didnt work!!!
thanks in advance

Best Answer

Experiment with this approach to get the result you want:
x = 0:100;
y = rand(size(x))*512;
figure
plot(x, y, '.')
grid
yt = [0 2.^(0:ceil(log2(max(y))))];
set(gca, 'YTick',yt, 'YScale','log')
.