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: sRGB_to_CIELab.m
    path of file: ./repos/mtex/extern/maxdistcolor
    
    the code of the file until where you have to start completion: function Lab = sRGB_to_CIELab(rgb)
% Convert a matrix of sRGB R G B values to CIELAB L* a* b* values.
%
% (c) 2018-2020 Stephen Cobeldick
%
%%% Syntax:
% Lab = sRGB_to_CIELab(rgb)
%
% https://en.wikipedia.org/wiki/SRGB

    
function Lab = sRGB_to_CIELab(rgb)
% Convert a matrix of sRGB R G B values to CIELAB L* a* b* values.
%
% (c) 2018-2020 Stephen Cobeldick
%
%%% Syntax:
% Lab = sRGB_to_CIELab(rgb)
%
% https://en.wikipedia.org/wiki/SRGB
% https://en.wikipedia.org/wiki/CIELAB_color_space
%
%% Examples %%
%
% >> sRGB_to_CIELab([109,169,245]/255)
% ans =
%    68.1800    2.1400  -43.8000
%
% >> sRGB_to_CIELab([0,0,0;1,1,1])
% ans =
%          0         0         0
%   100.0000    0.0000    0.0000
%
%% Inputs and Outputs
%
%%% Input Argument:
% rgb = Numeric Array, size Nx3 or RxCx3, where the last dimension
%       encodes sRGB values [R,G,B] in the range 0<=RGB<=1.
%
%%% Output Argument:
% Lab = Numeric Array, same size as <rgb>, where the last dimension
%       encodes CIELAB values [L*,a*,b*] in the range 0<=L*<=100.
%
% See also SRGB_TO_CAM02UCS SRGB_TO_OSAUCS CIELAB_TO_SRGB CIELAB_TO_DIN99
% MAXDISTCOLOR MAXDISTCOLOR_VIEW MAXDISTCOLOR_DEMO

%% Input Wrangling %%
%
isz = size(rgb);
assert(isnumeric(rgb),...
	'SC:sRGB_to_CIELab:rgb:NotNumeric',...
	'1st input <rgb> array must be numeric.')
assert(isreal(rgb),...
	'SC:sRGB_to_CIELab:rgb:ComplexValue',...
	'1st input <rgb> cannot be complex.')
assert(isz(end