figure;
str = repmat ("on ", 1, 100);
h = uicontrol (...
  'Style','edit', ...
  'Units','normalized', ...
  'Position',[0.25 0.25 0.5 0.2], ...
  'Max',2, ...
  'String', str);

disp ('Default background: '), get (h, 'backgroundcolor')
disp ("Notice background is white ([1 1 1])");
pause (2)
set (h, 'backgroundcolor', 'm');
disp ('Magenta background: '), get (h, 'backgroundcolor')
disp ("Background color now reflects backgroundcolor property");
pause (2)
set (h, 'backgroundcolor', [0.94, 0.94, 0.95]);
disp ('Backgroundcolor [0.94, 0.94, 0.95] (last value not default)');
disp ('Notice that background is now grey which matches the values set');
pause (2)
set (h, 'backgroundcolor', [0.94, 0.94, 0.94]);
disp ('Backgroundcolor [0.94, 0.94, 0.94] which is default, but shows up as white');
