How To Plot Functional MEG activity in Matlab

Needed:
- Fa-Hsuan's Toolbox
- Inflated brain
- stc file

1. Obtain ascii version of inflated brain surface...
    make sure the mri tools are active. (in house, type, nmrenv)
    go to your subject's directory, and go to their "surf" directory.
        mris_convert lh.inflated lh.inflated.asc
        mris_convert rh.inflated rh.inflated.asc

2.  Use matlab code to call two important functions from Fa-Hsuan's toolbox,
     one is called inverse_read_stc, and the other is inverse_render_brain_new.

     I have an example script which I used to render brains that you can look at.

     http://www.nmr.mgh.harvard.edu/~daniel/links/matlab/draw_MNE_set.m

     I made use of a helper function called inv_fpdf.m which you can get from me:

     http://www.nmr.mgh.harvard.edu/~daniel/links/matlab/inv_fpdf.m

     It is important to realize that my script only demonstrates one particular way
     to use the STC data. But you can make movies or other more complex images
     by taking different parts of the STC data and displaying the images in different
     ways.