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: matplotlibColormap.m
    path of file: ./repos/GIBBON/lib
    
    the code of the file until where you have to start completion: function [cMap]=matplotlibColormap(varargin)

% function [cMap]=matplotlibColormap(c,n)
% ------------------------------------------------------------------------
% This function is a MATLAB implementation of the matplotlib colormaps by
% Nathaniel J. Smith, Stefan van der Walt, and (in the case of viridis)
% Eric Firing. 
% 
% The input c controls the type of colormap: 'magma' (or 1), 'inferno' (or
% 2), 'plasma' (or 3), 'viridis' (or 4), and 'turbo (or 5).  
% The input n controls the number of color levels used. 
%
% Kevin Mattheus Moerman
% gibbon.toolbox@gmail.com
%
% 2018/04/10
%------------------------------------------------------------------------


    
function [cMap]=matplotlibColormap(varargin)

% function [cMap]=matplotlibColormap(c,n)
% ------------------------------------------------------------------------
% This function is a MATLAB implementation of the matplotlib colormaps by
% Nathaniel J. Smith, Stefan van der Walt, and (in the case of viridis)
% Eric Firing. 
% 
% The input c controls the type of colormap: 'magma' (or 1), 'inferno' (or
% 2), 'plasma' (or 3), 'viridis' (or 4), and 'turbo (or 5).  
% The input n controls the number of color levels used. 
%
% Kevin Mattheus Moerman
% gibbon.toolbox@gmail.com
%
% 2018/04/10
%------------------------------------------------------------------------

%%
switch nargin
    case 0
        c=4;
        n=[];
    case 1
        c=varargin{1};
        n=[];
    case 2
        c=varargin{1};
        n=varargin{2};
end