You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: uniqueColors.m
    path of file: ./repos/MCITF/Code/MCITF/EdgeBox/piotr_toolbox/toolbox/matlab
    
    the code of the file until where you have to start completion: function clrs = uniqueColors( m, n, show, offset )
% Generate m*n visually distinct RGB colors suitable for display.
%
% Useful when more than the 6 standard 'rgbcym' colors are needed for
% display. Generate m*n colors by sampling at constant intervals in HSV in
% the H and S channels (while keeping V fixed at 1). In addition, for every
% other level of saturation the H values are offset by half an interval to
% further distinguish each color. Inspired by a blog entry by Bart Mossey
% http://fob.po8.org/node/398, HOWTO: Picking "random colors".
%
% USAGE
%  clrs = uniqueColors( m, n, [show], [offset] )
%
% INPUTS
%  m      - number of saturation levels
%  n      - number of distinct hues to use
%  show   - optional display of colors
%  offset - [1] offset every other row of colors
%
% OUTPUTS
%  clrs   - [m*n x 3] array of rgb colors
%
% EXAMPLE - standard 6 fully saturated colors
%  clrs = uniqueColors(1,6,1);
%

    
function clrs = uniqueColors( m, n, show, offset )
% Generate m*n visually distinct RGB colors suitable for display.
%
% Useful when more than the 6 standard 'rgbcym' colors are needed for
% display. Generate m*n colors by sampling at constant intervals in HSV in
% the H and S channels (while keeping V fixed at 1). In addition, for every
% other level of saturation the H values are offset by half an interval to
% further distinguish each color. Inspired by a blog entry by Bart Mossey
% http://fob.po8.org/node/398, HOWTO: Picking "random colors".
%
% USAGE
%  clrs = uniqueColors( m, n, [show], [offset] )
%
% INPUTS
%  m      - number of saturation levels
%  n      - number of distinct hues to use
%  show   - optional display of colors
%  offset - [1] offset every other row of colors
%
% OUTPUTS
%  clrs   - [m*n x 3] array of rgb colors
%
% EXAMPLE - standard 6 fully saturated colors
%  clrs = uniqueColors(1,6,1);
%
% EXAMPLE - 24 colors used to plot some points
%  clrs = uniqueColors(4,6,1);
%  figure(2); clf; hold on; n=size(clrs,1);
%  for i=1:n, plot(mod(i-1,6),i,'.','color',clrs(i,:)); end