Home > brede > brede_ext_ext2mat.m

brede_ext_ext2mat

PURPOSE ^

brede_ext_ext2mat - Convert 'ext' to 'mat' structure

SYNOPSIS ^

function M = brede_ext_ext2mat(T, varargin)

DESCRIPTION ^

 brede_ext_ext2mat    - Convert 'ext' to 'mat' structure

       function M = brede_ext_ext2mat(T, varargin)

       Input:  T   'Ext' structures

       Output: M   'Matrix' matrix structure.

       Converts a 'ext' structure to a 'mat' (matrix) structure.

       The matrix is constructed as an adjacency matrix with the
       (parent, child)'th elements set to 1 if the child is connected
       to the parent.

       Example: 
         f = fullfile(fileparts(which('brede')), 'xml', 'woexts.xml');
         T = brede_read_xml(f, 'output', 'collapsesecond');
         M = brede_ext_ext2mat(T);
         imagesc(M.matrix), colormap(gray), xlabel('Child'), ylabel('Parent')

       See also BREDE, BREDE_MAT, BREDE_EXT_EXT2MAT,
                BREDE_WRITE_DOT.

 $Id: brede_ext_ext2mat.m,v 1.1 2002/11/22 18:36:57 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