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: cell2num.m
    path of file: ./repos/bnt/KPMtools
    
    the code of the file until where you have to start completion: function N = cell2num(C)
% CELL2NUM Convert a 2D cell array to a 2D numeric array 
% N = cell2num(C)
% If the cells contain column vectors, they must have the same number of rows in each row of C.
% Each column will be concatenated.
%
% Example 1:
% C = num2cell(rand(2,2))
%    [0.4565]    [0.8214]
%    [0.0185]    [0.4447]
% N = cell2num(C)
%     0.4565    0.8214

    
function N = cell2num(C)
% CELL2NUM Convert a 2D cell array to a 2D numeric array 
% N = cell2num(C)
% If the cells contain column vectors, they must have the same number of rows in each row of C.
% Each column will be concatenated.
%
% Example 1:
% C = num2cell(rand(2,2))
%    [0.4565]    [0.8214]
%    [0.0185]    [0.4447]
% N = cell2num(C)
%     0.4565    0.8214
%     0.0185    0.4447
%
% Example 2:
% C = cell(2, 3);
% for i=1:2
%   for j=1:3
%     C{i,j} = rand(i, 1);
%   end