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: readBESAtfc.m
    path of file: ./repos/fieldtrip/external/besa
    
    the code of the file until where you have to start completion: function tfc = readBESAtfc(filename)

% readBESAtfc reads all information from a *.tfc file
%

    
function tfc = readBESAtfc(filename)

% readBESAtfc reads all information from a *.tfc file
%
% Use as
%   tfc = readBESATFC(filename)
%
% The output is a structure containing the following fields:
%   ChannelLabels: character array of channel labels
%   Time: array of sampled time instants
%   Frequency: array of sampled frequencies
%   Data: 3D data matrix with indices (channel,time,frequency)
%   DataType: type of the exported data
%   ConditionName: name of analyzed condition
%   NumberOfTrials: Number of trials on which the data is based
%   StatisticsCorrection: Type of statistics correction for multiple testing
%   EvokedSignalSubtraction: Type of evoked signal subtraction
%
% Last modified April 25, 2006 Karsten Hoechstetter
% Last modified April 26, 2006 Robert Oostenveld

if isempty(findstr(filename,'.'))
  filename = [filename,'.tfc'];
end