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: ica_fuse_anova_contrasts.m
    path of file: ./repos/fit/FITv2.0e/ica_fuse/ica_fuse_utilities
    
    the code of the file until where you have to start completion: function [contrastResults, con_table] = ica_fuse_anova_contrasts(anovaResults, terms, all_contrasts, contrast_sources, tail)
%% Function to do anova contrasts
%
% Inputs:
% 1. anovaResults - Anova Results data structure
% 2. terms - Factors to include
% 3. all_co
    
function contrast_sources = gen_con_names(anovaResults, terms, all_contrasts)
%% Generate contrast source names
%
% Inputs:
% 1. anovaResults - anovaResults data structure
% 2. all_contrasts - All contrasts
%
% Outputs:
% contrast_sources - Contrast source names
%

%% Initialise contrast names
contrast_sources = repmat({''}, size(all_contrasts, 2), 1);

%% Loop over contrasts
for nCon = 1:size(all_contrasts, 2)
    % Initialise some variables
    startTp = 1;
    end