Skip to main content
  • Description
  • Conversion function for Elan TF files (.*tf*) to Matlab.

  • Usage
  • [s_Nb_Frequencies, v_Frequency_Bins, s_Nb_Samples, s_Nb_Channels, s_Sampling_Frequency, s_Nb_Sample_PreStim, s_Wavelet_Type, s_Blackman_Window_Size, s_DownSampling_Step, v_Channels_Label, v_Elec, v_Wavelet_m_parameter, v_Nb_Evt_per_Chan, m_Data_TF] =

    tf2mat (tf_file_name,varargin)
    with :

    • tf_file_name : input filename (with extension) with the complete path.
    • option :
      'save', mat_name : to save all the results in a .mat file named mat_name.mat .

    output :

    • s_Nb_Channels : total number of channels.
    • v_Elec : channel number in elec.dat.
    • v_Channels_Label : channel label.
    • s_Nb_Samples : total number of samples in time domain.
    • s_Nb_Sample_PreStim : number of samples for prestimulus.
    • s_Sampling_Frequency : sampling frequency (Hz).
    • s_Nb_Frequencies : total number of frequencies.
    • s_Wavelet_Type : wavelet type (1 : Morlet, 2 : Gabor).
    • v_Frequency_Bins : frequency bins values (Hz).
    • v_Wavelet_m_parameter : m parameter for the Morlet wavelet, or sigma t parameter for Gabor wavelet.
    • s_Blackman_Window_Size : number of samples of the Blackman window.
    • s_DownSampling_Step : downsampling step.
    • v_Nb_Evt_per_Chan : number of averaged TF per channel.
    • m_Data_TF : time-frequency data (s_Nb_Channels x s_Nb_Frequencies x s_Nb_Samples).


  • Fields of parameter file and example

  • Example

  • Comments

  • Current version
  • 1.01 09-08-2010

  • History
    • 1.00 31-10-2009 (PEA/EM) : first version.
    • 1.01 09-08-2010 (PEA) : minor change (variable names).


  • Files
  • $ELANPATH/misc/matlab/tf2mat.m

  • See also
  • mat2tf