Skip to main content
  • Description
  • Converts a matrix XML file (.xml) to an evoked potential file format (.p). This is used to visualize the component matrix obtained after ICA decomposition (topography of each component, one component per latency).

  • Usage
  • matrix2p eegfile.eeg matrixfile.xml output_epfile.p [-i]

    with :

    • eegfile.eeg : input EEG filename used to read header informations (number of channels, channel names, etc) (with extension).
    • matrixfile.xml : matrix file (XML format) (with extension).
    • output_epfile.p : output evoked potential file containing the matrix values (with extension).
    • option :
    • -i : matrix inversion.


  • Fields of parameter file and example

  • Examples

  • Comments
    1. This programme allows to visualize as an evoked potential file (.p) the decomposition matrix obtained after ICA decomposition. Each latency corresponds to the topography of one component. The first component is at latency 1.
    2. Matrix XML file format and example :
    3. 35 Total number of channels
      32 Number of channels used for computation
      32 Number of sources or components
      1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23;24;25;26;27;28;29;30;31;32; List of used channel indices
      -0.108017;-0.023034;0.056247; ... Data value : matrix nbsources (lines) x nbusedchan (columns)

      See the following example files :
      example_matrix2p.xml is an example of matrix with 35 channels of EEG, 32 used for computation, and 32 components computed.
      example_one_component.xml is an example of matrix with 340 channels of MEG and EEG, 275 MEG channels used for computation and only one component computed.


  • Current version
  • 1.04 29-09-2010

  • History
    • 1.00 22-02-2008 (PEA) : 1st version.
    • 1.01 25-02-2008 (PEA) : adds matrix inversion option.
    • 1.02 26-02-2008 (PEA) : changes for first component at latency 1 (one sample prestim=0, latency 0 =0), "number of samples"=number of components+2.
    • 1.03 03-03-2008 (PEA) : changes for "time" scale.
    • 1.04 29-09-2010 (PEA) : updates to use cmake and free release of Elan.


  • Files
  • $ELANPATH/bin/matrix2p

  • See also
  • eegcomponent, eegfiltica, eegproject

AttachmentSize
example_matrix2p.xml9.83 KB
example_one_component.xml7.87 KB