Skip to main content
  • Description
  • Conversion function Matlab file to Evoked Potential format.

  • Usage
  • n = mat2ep(p_file_name, s_Event_Code, s_fs, s_Nb_Sample_PreStim, v_Elec, s_Nb_Event_Aver, DATA)
    with :

    • p_file_name : output *.p file name.
    • s_Event_Code : averaged event code.
    • s_fs : sampling frequency (Hz).
    • s_Nb_Sample_PreStim : number of samples for prestimulus.
    • v_Elec : channel number in elec.dat.
    • s_Nb_Event_Aver : number of averaged epochs.
    • DATA : data (1 channel per line, 1 sample per column).

    output :

    • n : number of written float.


  • Fields of parameter file and example

  • Example
  • Load data with :
    [HEADER1, HEADER2, DATA] = ep2mat ('my_data.p')
    Modify your data as you want, and create new matrix DATA_NEW with same size.
    Save new data in file with :
    n = mat2ep('my_new_data.p', HEADER1.s_Event_Code, 1000/HEADER2.s_Sampling_Period, HEADER2.s_Nb_Sample_PreStim, HEADER2.v_Elec, HEADER2.s_Nb_Event_Aver, DATA_NEW)


  • Comments

  • Current version
  • 1.03 09-08-2010

  • History
    • 1.03 09-08-2010 (PEA) : minor change (variable names).


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

  • See also
  • ep2mat