If the block is caseempty, nothing is done in this particular case. Therefore, if opt.colors 'rgb', no action is taken.
, case, , , otherwise ( opts.color 'hsv', wasn 't /) , opt.colors 'rgb', , , .
if ~strcmpi(opts.color, 'rgb')
switch lower(opts.color)
case 'opponent'
% Do stuff
case 'hsv'
% Do other stuff
otherwise
% Throw warning
end
end
case, , case.
switch lower(opts.color)
case {'rgb', 'opponent'}
...
end