Write a callback function named toggleWeekend that controls whether the Saturday and Sunday buttons are enabled and part of the selection group. This callback executes when a user interacts with the check box. Save the function in a folder that is on the MATLAB path.
Button to add, specified as an array of RadioButton objects or an
array of ToggleButton objects. The specified buttons must be the same
type and in the same figure. The button type must match any existing buttons in the selection
group sg.