[Master Index] [Index for export/brede]

brede_mat_mat2loc

(export/brede/brede_mat_mat2loc.m)


Function Synopsis

L = brede_mat_mat2loc(M, varargin)

Help text

 brede_mat_mat2loc    - Convert 'mat' structure to 'loc' structures'

       L = brede_mat_mat2loc(M, 'PropertyName', 'PropertyValue') 

       Input:  M   'Mat' structure

       Output: L   'Loc' structures in cellarray

       Convert a 'mat' structure to 'loc' structures. 

       In one type of conversion the 'mat' structure should contain
       voxel coordinates in the columns field. 

       In another type of conversion the 'mat' structure should
       contain voxel coordinates in the 'matrix' field and the
       columns should be annotated 'x', 'y' and 'z'. 

       Example: 
         M1.columns     = { 'x' 'y' 'z' };
         M1.matrix(1,:) = [ 0.01 0.02 0.03 ];
         M1.matrix(2,:) = [ -0.05 -0.06 0 ];
         L = brede_mat_mat2loc(M1);
         figure, brede_ta3_frame, brede_ta3_loc(L);

         M2.columns(:,1) = [ 0.01 0.02 0.03 ]';
         M2.columns(:,2) = [ -0.05 -0.06 0 ]';
         M2.matrix       = [ 3 4 ];
         L = brede_mat_mat2loc(M2);
         figure, brede_ta3_frame, brede_ta3_loc(L);

       See also BREDE, BREDE_MAT, BREDE_LOC, BREDE_LOC_LOC2MAT.  
 
 $Id: brede_mat_mat2loc.m,v 1.2 2006/08/17 12:41:03 fn Exp $

Cross-Reference Information

This function calls
This function is called by

Produced by mat2html on Fri Jun 20 17:43:05 2008
Cross-Directory links are: OFF