%% Specify Bar Thickness and Color
% Create and display data in a horizontal bar graph that has red bars with a thickness of 0.4.

y = [10 22 30 42];
width = 0.4;
barh(y,width,'red');

% Copyright 2019 The MathWorks, Inc.