@Delany MacDonald, to create box plots for two arrays of different sizes in MATLAB, you can simply concatenate the arrays into a single vector and use a grouping variable to distinguish between the two groups (males and females).
Refer to the code below:
% Create dummy data: 21 days, 144 people
useAlarm = randi([0, 1], 21, 144); % Random 0s and 1s
% Assume first 74 are females and next 70 are males
femaleIndices = 1:74;
maleIndices = 75:144;
% Sum alarm usage over 21 days for each person
alarmFemales = sum(useAlarm(:, femaleIndices), 1);
alarmMales = sum(useAlarm(:, maleIndices), 1);
% Concatenate the data
alarmData = [alarmFemales, alarmMales];
% Create a grouping variable
genderLabels = [repmat({'Female'}, 1, length(alarmFemales)), repmat({'Male'}, 1, length(alarmMales))];
% Plot the boxplot
figure;
boxplot(alarmData, genderLabels);
ylabel('Total Alarm Usage');
title('Comparison of Alarm Usage by Gender');