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: mne_make_compensator.m
    path of file: ./repos/malini/Codes/deconvolution - model/spm8/external/mne
    
    the code of the file until where you have to start completion: function [comp] = mne_make_compensator(info,from,to,exclude_comp_chs)
%
% [comp] = mne_make_compensator(info,from,to,exclude_comp_chs)
%
% info              - measurement info as returned by the fif reading routines
% from              - 
    
function this_comp = make_compensator(info,kind)

        for k = 1:length(info.comps)
            if info.comps(k).kind == kind
                this_data = info.comps(k).data;
                %
                %   Create the preselector
                %
                presel  = zeros(this_data.ncol,info.nchan);
                for col = 1:this_data.ncol
                    c = strmatch(this_data.col_names{col},info.ch_names,'exact');
                    if isempty(c)
                        error(me,'Channel %s is not available in data',this_data.col_names{col});
                    elseif length(c) > 1
                        error(me,'Ambiguous channel %s',mat.col_names{col});
                    end