Home > brede > brede_roi_roi2mat.m

brede_roi_roi2mat

PURPOSE ^

brede_roi_roi2mat - Convert 'roi' structures to 'mat' structure

SYNOPSIS ^

function M = brede_roi_roi2mat(T, varargin)

DESCRIPTION ^

 brede_roi_roi2mat    - Convert 'roi' structures to 'mat' structure

       M = brede_roi_roi2mat(R, 'PropertyName', 'PropertyValue') 

       Input:    R     'Roi' structure

       Property: Info  [ {0} | Waitbar | integer ] Amount of
                       feedback/debug information 
                 Type  [ {ParentChild} | Names | NamesExact |
                       CoCoMacSite | Sibling ] Type of matrix to
                       construct 

       Output:   M     'Mat' structure

       This function convert 'roi' structures to a 'mat' structure
       that contains a matrix. 

       For Type=ParentChild an adjencency matrix is built determined
       from the parent/child fields in the 'roi' structures.

       For Type=Names a (Roi x names)-matrix is built containing
       zeros and ones, where one indicates that the name is in brain
       area referred to by the Roi, e.g., for the fourth row
       ("Cingulate gyrus", WOROI 4) there is a one in the columns
       corresponding to "Cingulate gyrus", "Anterior cingulate
       gyrus" and "Right posterior cingulate gyrus" among others

       For Type=NamesExact a (Roi x names)-matrix is built. This
       contain only the names defined for the structure itself.

       Example:
         froi = fullfile(fileparts(which('brede')), 'xml', 'worois.xml');
         R = brede_read_xml(froi, 'output', 'collapsesecond');
         Mroi = brede_roi_roi2mat(R)
         brede_mat_plot_count(Mroi)

       See also BREDE, BREDE_ROI, BREDE_MAT, BREDE_ROI_ROI2HTML,
                BREDE_EXT_EXT2MAT, BREDE_LOC_LOC2MAT.

 $Id: brede_roi_roi2mat.m,v 1.7 2006/07/05 15:11:05 fn Exp $

CROSS-REFERENCE INFORMATION ^

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