Skip to main content
  • Description
  • Conversion function Matlab file to Time-Frequency format.

  • Usage
  • mat2tf (tf_file_name, s_type_tfmoy, s_type_1_tfmoy, s_type_2_tfmoy, s_type_signal,m_Data_TF, v_Elec, v_Channels_Label, s_Nb_Sample_PreStim, s_Sampling_Frequency, s_Wavelet_Type, v_Frequency_Bins, v_Wavelet_m_parameter, s_Wavelet_Window_Size, s_DownSampling_Step, v_Nb_Evt_per_Chan, s_corr_BL, s_smooth_tf, s_Avg_Chan)
    with :

    • tf_file_name : output file name.
    • s_type_tfmoy : file type :
      • 1 : elementary time-frequency (avg.tf).
      • 2 : computed from evoked potentials (ep.tf).
      • 3 : phase (pl.tf).
      • 6 : statistics (.stat.tf).
      • 10 : synchrony (.ph.tf) .
    • s_type_1_tfmoy : file origin :
      • 1 : no specific operation.
      • 2 : mean of TF.
      • 3 : median of TF.
      • 4 : difference between TF.
      • 5 : weighted mean of TF.
      • 6 : sum of TF.
      • 7 : Z of TF.
      • 8 : P of TF.
      • 9 : synchrony of TF.
    • s_type_2_tfmoy : if statistics, statistics type :
      • 1 : no statistic.
      • 2 : F Quade.
      • 3 : T Conover.
      • 4 : Z sign.
      • 5 : P sign.
      • 6 : n + sign.
      • 7 : n - sign.
      • 8 : Z Wilcoxon.
      • 9 : standard deviation.
      • 10 : upper confidence bound.
      • 11 : lower confidence bound.
      • 12 : synchrony randomization.
      • 13 : amplitude randomization.
    • s_type_signal : original signal type :
      • 1 : potential.
      • 2 : SCD.
    • m_Data_TF : time frequency data (s_Nb_Channels x s_Nb_Frequencies x s_Nb_Samples).
    • v_Elec : channel indices in elec.dat .
    • v_Channels_Label : channel labels.
    • s_Nb_Sample_PreStim : number of samples for prestimulus.
    • s_Sampling_Frequency : sampling frequency (Hz).
    • s_Wavelet_Type : wavelet type (1 : Morlet, 2 : Gabor).
    • v_Frequency_Bins : frequency bins values (Hz).
    • v_Wavelet_m_parameter : m parameter for Morlet wavelet, or sigma t for Gabor wavelet.
    • s_Blackman_Window_Size : number of samples of Blackman window :
      • default : number of samples of Blackman window (tf_nb_sample_blackman).
      • smooth : 0.
      • Wilcoxon : tf_nb_sample_blackman * Te_Orig_sig(ms) / tfstat_time_step (ms) .
    • s_DownSampling_Step : downsampling step.
    • v_Nb_Evt_per_Chan : number of averaged TF per channel.
    • s_corr_BL : type of baseline correction :
      • 0 : none.
      • 1 : substract mean of baseline.
      • 101 : substract mean of baseline (computed on another file).
      • 2 : substract median of baseline.
      • 102 : substract median of baseline (computed on another file).
      • 3 : normalize and substract mean of baseline.
      • 103 : normalize and substract mean of baseline (computed on another file).
      • 4 : normalize and substract median of baseline.
      • 104 : normalize and substract median of baseline (computed on another file).
      • 5 : normalize and substract RMS value.
      • 105 : normalize and substract RMS value (computed on another file).
      • 6 : normalize and substract maximum value.
      • 106 : normalize and substract maximum value (computed on another file).
    • s_smooth_tf : smoothing TF flag :
      • 0 : none.
      • 1 : smoothing.
    • s_Avg_Chan : grand-average across-channels flag :
      • 0 : none.
      • 1 : grand-average.


  • Fields of parameter file and example

  • Example

  • Comments

  • Current version
  • 1.01 09-08-2010

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


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

  • See also
  • tf2mat