%% Compare Medians Using Notches
% Use notches to determine whether median values are significantly different from each other.
% Load the patients data set. Split the patients according to their location. For each group of patients, create a box chart of their weights. Specify 'Notch','on' so that each box includes a tapered, shaded region called a notch. Box charts whose notches do not overlap have different medians at the 5% significance level.

load patients
boxchart(categorical(Location),Weight,'Notch','on')
ylabel('Weight (lbs)')

% In this example, the three notches overlap, showing that the three weight medians are not significantly different.
% Copyright 2019 The MathWorks, Inc.