saveroi
PURPOSE
saveroi method - checks fname, sets source field, saves object
SYNOPSIS
function roi = saveroi(roi, fname)
DESCRIPTION
CROSS-REFERENCE INFORMATION
This function calls:
- isempty overloaded isempty method for mardo object
- source source - returns / sets source value for object
This function is called by:
- run_tutorial MarsBaR batch script to show off MarsBaR batching
- mars_blobs2rois creates ROIs from spm_results_ui SPM
- mars_img2rois creates ROIs from cluster image or image containing ROIs defined by unique nos
- marsbar Startup, callback and utility routine for Marsbar
SOURCE CODE
0001 function roi = saveroi(roi, fname)
0002
0003
0004
0005
0006 if nargin < 2
0007 fname = source(roi);
0008 end
0009 if isempty(fname)
0010 error('Need filename for save');
0011 end
0012 roi.source = fname;
0013 save(roi.source, 'roi');
Generated on Wed 11-May-2022 16:26:09 by m2html © 2003-2019