# MATLAB: Change the scale of a horizontal bar graph

barbarhgraphhorizontalpercentage

Hi everyone, I would like to know how I can normalize , I don't know if it is the correct word, the x-axis of a horizontal bar graph (barh).
More specifically, I have calculated some coefficients which sum to 1 hence each of them can be expressed as a % . Therefore, instead of getting an automatic max value on the x-axis of the barh, I would like to change this in order to display values like 10,20,30,……,100 being the max value.
Thank you very much in advance.

v = [0.1 0.3 0.2 0.4];                                      % Create Datafigurebarh(v)xlim([0 1])                                                 % Set X-Axis Limitsxt = get(gca, 'XTick');                                     % Current X-Tick Valuesset(gca, 'XTick',xt, 'XTickLabel',xt*100)                   % New X-Tick Values