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: match_nirs_labels.m
    path of file: ./repos/fieldtrip/external/artinis/private
    
    the code of the file until where you have to start completion: function matching_channels = match_nirs_labels(labels)
% MATCHING_CHANNELS finds the labels of the signals associated to the
% same combination of receiver and transmitter and provides as output a
% binary matrix where 1 represents that channels in the corresponding
% row-column combination match.
% 
% OUTPUT
%  matching_channels: nChan x nChan binary matrix; where 1 represents that 
% channels in the corresponding row-column combination match, and 0 represents
% the cases where they do not match.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

num_channels=numel(labels);
matching_channels = ones(num_channels, num_channels);


    
function matching_channels = match_nirs_labels(labels)
% MATCHING_CHANNELS finds the labels of the signals associated to the
% same combination of receiver and transmitter and provides as output a
% binary matrix where 1 represents that channels in the corresponding
% row-column combination match.
% 
% OUTPUT
%  matching_channels: nChan x nChan binary matrix; where 1 represents that 
% channels in the corresponding row-column combination match, and 0 represents
% the cases where they do not match.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

num_channels=numel(labels);
matching_channels = ones(num_channels, num_channels);

for n = 1 : num_channels
    label_check1 = labels{n};
    label_check1_split = split(label_check1, ' [');
    label_check1_split = label_check1_split{1};
    for m = 1 : num_channels
        if(n == m)
            continue
        end