I found a way but the labeling is not working properly.
I use this code:
% Color bar
colbar1 = colorbar();
Acc_mean = Acc_min+Delta_Acc/2;
colbar1.Ticks = [0 0.5 1];
colbar1.TickLabels = {append(num2str(Acc_min/10000000),' m/s^2'), append(num2str(Acc_mean/10000000),' m/s^2'),...
append(num2str(Acc_max/10000000),' m/s^2')};
colbar1.Label.String = 'Acceleration'; colbar1.Label.FontSize = 20; colbar1.Label.HorizontalAlignment = 'left'; colbar1.Label.Position = [2.5 0.05 0];
But the labeling for the upper, red end, the lower, blue end, as well as the colorbar label is not displayed.