* ================================================================== *
* Neuromag toolkit for VBMEG                                         *
* ================================================================== *

We prepared Matlab functions to import NeuroMag MEG data.
But we have not fully tested them.
Therefore, these functions may have bugs or some problems.

* ------------------------------------------------------------ *
* How to import neuromag data into VBMEG                       *
* ------------------------------------------------------------ *
The following function is used to import neuromag data.

neuromag_to_megmat(data_fiffile, mri_fiffile, ...
                   output_prefix, face_file);

You can read help of this function.

>> help neuromag_to_megmat.m
  make MEG-MAT file from neuromag fiffile.
  [USAGE]
     neuromag_to_megmat(data_fiffile, mri_fiffile, ...
                        output_prefix, face_file)
  [IN]
       data_fiffile : Data fiffile.
        mri_fiffile : MRI fiffile.
      output_prefix : output filename prefix.
                      (ex. '/home/RH/RH' => /home/RH/RH.meg.mat)
  [optional input]
          face_file : If you want to calculate by using spherical model,
                      center position and radius of spherical model are 
                      necessary.
                      A face file which is made by positioning tool has them.
                      For face file, please refer to the manual of the
                      positioning tool
  [OUT]
     meg.mat file with output_prefix is saved


* History
2011/6/15 First version
2011/9/12 Bugfix
          The way of transform from neuromag coordinate system into 
          vbmeg coordinate system was changed. Because of this, 
          the argument(analyze_file) for the function "neuromag_to_megmat"
          was abolished.
2012/6/29 Version 1.0-1-a-0
2018/8/30 Change internal program of Neuromag import function to the MNE's program.
