Put label in colorbar
Show older comments
I put the label ('Power (dB') in my color bar, and the code is below:
a=colorbar;
ylabel(a,'Power (db)','FontSize',16,'Rotation',270);
However, the label is too close the colorbar (see the figure).
Can anyone help me? Thanks!
Also, how can I to put the different title for each subplot. 

1 Comment
Clara Casals Baixas
on 5 Mar 2024
Try this:
a=colorbar;
a.Label.String = 'Power (db)';
Accepted Answer
More Answers (1)
Ruger28
on 18 Sep 2019
From
doc colorbar
try
a = colorbar;
a.Label.String = 'Power (dB)';
1 Comment
Ting-Yu Chueh
on 18 Sep 2019
Categories
Find more on Axes Appearance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


