Home > marsbar > @maroi_pointlist > maroi_matrix.m

maroi_matrix

PURPOSE ^

maroi_matrix method - converts roi to maroi matrix type

SYNOPSIS ^

function obj2 = maroi_matrix(obj, space)

DESCRIPTION ^

 maroi_matrix method - converts roi to maroi matrix type

 Without space arg, returns object in native space

 $Id$

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function obj2 = maroi_matrix(obj, space)
0002 % maroi_matrix method - converts roi to maroi matrix type
0003 %
0004 % Without space arg, returns object in native space
0005 %
0006 % $Id$
0007 
0008 params = paramfields(obj);
0009 params.dat = obj.voxblock.dat;
0010 params.mat = obj.voxblock.mat;
0011 
0012 % put into maroi_matrix object
0013 obj2 = maroi_matrix(params);
0014 
0015 % rebase using maroi_matrix method if space argument passed
0016 if nargin > 1
0017   obj2 = maroi_matrix(obj2, space);
0018 end

Generated on Wed 11-May-2022 16:26:09 by m2html © 2003-2019