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: cfg_struct2cfg.m
    path of file: ./repos/ExploreASL/External/SPMmodified/matlabbatch
    
    the code of the file until where you have to start completion: function cc = cfg_struct2cfg(co, inde
    
function cc = try_assign(cc, co, fn)
try
    cc.(fn) = co.(fn);
catch
    le = lasterror;
    le1.identifier = 'matlabbatch:cfg_struct2cfg:failed';
    le1.message    = sprintf('     Node %s / ''%s'' field %s: import failed.\n%s', cc.tag, ...
            cc.name, fn, le.message);
    cfg_message(le1);
end