Home > brede > brede_spm2_table2loc.m

brede_spm2_table2loc

PURPOSE ^

brede_spm2_table2loc - Convert result table to locations

SYNOPSIS ^

function L = brede_spm2_table2loc(A, varargin)

DESCRIPTION ^

 brede_spm2_table2loc - Convert result table to locations

       L = brede_spm2_table2loc(A, 'PropertyName', 'PropertyValue')  
   
       Input:   A       (optional) Table from SPM2

       Property Convert [ mni2tal | {none} ] conversion between
                        brain templates 

       Output:  L       'Loc' structure

       Reads the values from a SPM2 result window table.
       'pValue' field is set to the corrected FWE voxel value and
       'value' is set to the equivalent 'Z' statistics.

       By default the Talairach coordinates will not be converted
       from MNI to Talairach space: 'convert'='none'. Conversion can
       be switched on with 'convert'='mni2tal'. See brede_loc_xform.
       
       If there is no input arguments given the function will read the
       values from the 'Graphics' window in SPM2 and return the table
       from there. The data is hidden in the user data of a menu with
       the tag 'TD_Xdat'.

       Ref: http://www.fil.ion.ucl.ac.uk/spm/

       Example:
         % In the SPM2 result control window, press 'volume' or
         % 'cluster' (in the 'p-values' section). Then right
         % click in the table 'Extract table data structure'
         % The structure now appears and the 'ans' variable in the
         % workspace
         L = brede_spm2_table2loc(ans)

         % Alternatively if the SPM result control window is open
         L = brede_spm2_table2loc

         % View the coordinates
         brede_ui_loc(L)

         % View coordinats with more fields
         f = {'coord' 'zScore' 'tValue' 'pValueCorrected' ...
           'pValueUncorrected' }; 
         brede_ui_loc(L, 'fields', f)

       See also BREDE, BREDE_LOC, BREDE_LOC_XFORM, SPM_LIST.

 $Id: brede_spm2_table2loc.m,v 1.2 2005/06/07 15:44:55 fnielsen Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 27-Nov-2009 18:11:22 by m2html © 2005