maroi_matrix method - converts roi to maroi matrix type Without space arg, returns object in native space $Id$
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