MATLAB: Rotate ylabel with yyaxis left keep centered and space between yticks

plotrotationsubplotylabelyticks

Hello,
I am trying to rotate the ylabel which is place in left y-axis. I use ylabel('C_n^2 (m^{-2/3})','rotation',-90) and it works. However, I also plot the yticks and it overlaps the ylabel with the yticks. Please, see the below picture
untitled.png
So, how can I fix it?
THank you

Best Answer

ylh = ylabel(. . .);
set(ylh,'rotation',-90,'VerticalAlignment','bottom')
Those properties can also be set directly in ylabel(), too.