Home > brede > brede_mat_mat2loc.m

brede_mat_mat2loc

PURPOSE ^

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

SYNOPSIS ^

function L = brede_mat_mat2loc(M, varargin)

DESCRIPTION ^

 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:
Generated on Fri 27-Nov-2009 18:11:22 by m2html © 2005