Home > brede > brede_vol_gencoord.m

brede_vol_gencoord

PURPOSE ^

brede_vol_gencoord - Generate coordinates for volumes

SYNOPSIS ^

function C = brede_vol_gencoord(varargin)

DESCRIPTION ^

 brede_vol_gencoord   - Generate coordinates for volumes

       function C = brede_vol_gencoord('PropertyName',
          'PropertyValue') 
       
       Property: Step      [ 0.005 ]  The step size between slices
                           in the volume in meters.
                 Template  [ ch2 | spm99_default | spm95 | spm99_template |
                           spm99_default_0.004 | spm99_default_0.008 ]
                 X         Vector with x-coordinates
                 Y         Vector with y-coordinates
                 Z         Vector with z-coordinates
                 Xlimit    [ {[-0.08 0.08]} ]
                 Ylimit    [ {[-0.12 0.08]} ]
                 Zlimit    [ {[-0.07 0.09]} ]
 
       Output: C    Coordinates return as a Nx3 matrix with x in the
                    first column having the fastest runing index
                    and y in the second column having the
                    second-fastest index: [ x y z ].

       This function will generate coordinates for a regular volume. 

       For the template definitions the following steps and limits
       are defined:
         ch2
           x = -0.089:0.001:0.091;
           y = -0.125:0.001:0.091;
           z = -0.071:0.001:0.109;
         spm99_default
           x = -0.078:0.002:0.078;
           y = -0.112:0.002:0.076;
           z = -0.050:0.002:0.085;
         spm99_default_0.004
           x = -0.076:0.004:0.076;
        y = -0.112:0.004:0.076;
        z = -0.048:0.004:0.084;
         spm99_default_0.008
           x = -0.072:0.008:0.072;
           y = -0.112:0.008:0.072;
           z = -0.048:0.008:0.080;
         spm99_default_0.008l   ("l" for large)
           x = -0.08:0.008:0.08;
           y = -0.112:0.008:0.08;
           z = -0.056:0.008:0.088;
         spm95
           x = -0.064:0.002:0.064;
           y = -0.104:0.002:0.068;
           z = -0.028:0.002:0.072;
         spm99_template
           x = -0.090:0.002:0.090;
           y = -0.126:0.002:0.090;
           z = -0.072:0.002:0.108;
         spm99_template_0.008
           x = -0.088:0.008:0.088;
           y = -0.120:0.008:0.088;
           z = -0.072:0.008:0.104;

       Example:
         C = brede_vol_gencoord;
 
       See also BREDE, BREDE_VOL, BREDE_VOL_MAT2VOL, BREDE_LOC_LOC2VOL,
                BREDE_EXP_EXP2MAT.

 $Id: brede_vol_gencoord.m,v 1.14 2008/10/07 17:51:38 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