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: sub2ind_.m
    path of file: ./repos/Robotics-Toolbox/rvcdlcs/src/common
    
    the code of the file until where you have to start completion: function ind = sub2ind_(siz,sub)
% Convert subscripts to linear indices
% 
%     This MATLAB function returns the linear index equivalents to the row and column

    
function ind = sub2ind_(siz,sub)
% Convert subscripts to linear indices
% 
%     This MATLAB function returns the linear index equivalents to the row and column
%     subscripts rowSub and colSub for a matrix of size matrixSize.
% 
%     Ind = sub2ind_(matrixSize, Sub)
        
subsplit = num2cell(sub,1);
ind = sub2ind(siz,subsplit{:});
end